Posted by Angham Al-Banawien, Last modified by Diana Alkouni on 25 August 2020 09:08 AM


Public Function PostionGetInteger (ByVal property_id As ENUM_POSITION_PROPERTY_INTEGER ) As Long.


This function overloads 2 variants as the following


Public Function PositionGetInteger (ByVal property_id As ENUM_POSITION_PROPERTY_INTEGER, ByRef long_var As Long) As  Boolean.


This function is used to return value of type integer 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_INTEGER
long_var   The requested property value. Value of type is Long. 

Return value

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


 Public Sub main()

     Dim Select_Result As Boolean

     Dim value as Long

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

      If  Select_Result = true then 
         value = ClientCode.PositionGetInteger(VTLGeneral.ENUM_POSITION_PROPERTY_INTEGER.POSITION_TYPE)
         GUI.MsgDialog(“Open position type is:” & value )
        ‘ Or you can use the below code 
         Dim Result As Boolean
         Result = ClientCode.PositionGetInteger (VTLGeneral.ENUM_POSITION_PROPERTY_INTEGER.POSITION_TYPE,value)
         If result = true then
           GUI.MsgDialog(“Open position type 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