Posted by Mohammad Rahhal, Last modified by Salameh Abu Hashish on 21 December 2018 12:30 PM


Public Function RequestManageOrders(ticket As Long) As Boolean

This function is used to request all managed orders that related to specific position from the server. To get result from the server, you have to consume OnManageOrdersReceived event.


Key Description 
Ticket Position ticket number which has manage orders, a value of type Long.

Return value
Returns true if successful. Otherwise, returns false. In order to get an error, call GetlastError() function.


Public Sub main()

  Dim PositionTicket
   If AccountInfoInteger(ACCOUNT_LOGIN) Then

     If RequestManageOrders (PositionTicket) Then
         AlertMessage "The Request has been sent to the server to get all manage orders related to                                      PositionTicket "

        Alertmessage  ErrorDescription(GetLastError())
    End If 
  End If 

End Sub

'This event raised when calling RequestManageOrders method successfully 

  Public Sub OnManageOrdersReceived(manageOrders)

    Dim i

' Receiving Manage Order related to PositionTicket 

   For i = 1 To manageOrders.Count()
        AlertMessage CSTR(manageOrders. Orders(i))

  End Sub


See Also

Back to VTL Client 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