Posted by Angham Al-Banawien, Last modified by Rawan Al Hourani on 20 January 2021 11:25 AM


Public Function PositionGetString (ByVal property_id As ENUM_POSITION_PROPERTY_STRING) As String.


This function overloads 2 variants like the following


Public Function PositionGetString (ByVal property_id As ENUM_POSITION_PROPERTY_STRING, ByRef String_var As String) As  Boolean.


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


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

Return value

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


 Public Sub main()

     Dim Select_Result  As Boolean

     Dim value as String

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

      If  Select_Result = true then 
         value = ClientCode.PositionGetString (VTLGeneral.ENUM_POSITION_PROPERTY_STRING.POSITION_SYMBOL)
         GUI.MsgDialog(“Open position symbol is:” & value )
        ' Or you can use the below code 
         Dim Result As Boolean
         Result = ClientCode.PositionGetString (VTLGeneral.ENUM_POSITION_PROPERTY_STRING.POSITION_SYMBOL,value)
         If result = true then
           GUI.MsgDialog(“Open position symbol is:” & value ) 
         End IF 
      End If  

  End Sub


See Also

Back to VTL Server Script Index

(0 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name:
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