Syntax
Public Function OrderSelect(OrderID As Long) As Boolean
Description
This function is used to choosean pending order at the orders list by taking its ID.
Parameters
Key | Description |
OrderID | Pinding order number to be seleced,value of type Long.. |
Return value
Return true if successful .Otherwise returns false. In order to get an error, call GetLastError() function.
Note:
After choosing order by order number, you can inquire about the property of order by using OrderGetDouble(), OrderType(), orderTime() , orderSymbol() ,OrderGetString(), . OrderGetInteger() and orderLots().
Sample
Public Sub main () Dim order order = OrderGetID (1) AlertMessage OrderSelect (Clng (order))Returns True if order selected successfully End sub
See Also