PositionGetBool
Posted by Angham Al-Banawien, Last modified by Abdullah Almasharfah on 07 December 2018 04:49 PM

Syntax

This function overloads 2 variants as the following

Public Function PositionGetBool(ByVal property_id As ENUM_POSITION_PROPERTY_BOOL) As Boolean.

 

Public Function PositionGetBool(ByVal property_id As ENUM_POSITION_PROPERTY_BOOL, ByRef bool_var As Boolean) As  Boolean.

This function is used to return value of type Boolean that corresponding at position property for the selected position

Parameters

Parameter  Description 
property_id The property which is required to get its value. It can be one of the ENUM_POSITION_PROPERTY_BOOL
String_var  The requested property value. Value of type is Long. 

Return value

Returns the requested property value as the value of type String.

Sample

  Public Sub main()

     Dim Select_Result As Boolean

     Dim value as Boolean

     Select_Result = ClientCode.PositionSelectByIndex (1)’ select the first open position at trade list    

      If Result = true then
         value = ClientCode.PositionGetBool (POSITION_LIQUIDATE)
         GUI.MsgDialog(“Position liquidate?:” & value )
        ‘ Or you can use the below code
         Dim Result As Boolean
         Result = ClientCode.PositionGetBool (POSITION_LIQUIDATE,value)
         If result = true then
           GUI.MsgDialog(“Position liquidate?:” & value )
         End IF
      End If 

  End Sub

 


See Also


Back to VTL Server Script Index

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions