Syntax
Public Function OrderGetString(propertyID As Integer, ByRef stringVar As Variant) As Boolean
Description
This function is used to get the stringinformation forSelected Orderaccording to property ID value and set the result on stringVar variable.Description
Parameters
Key | Description |
propertyID | The property to get it value, the value can be one of the ENUM_ORDER_PROPERTY_STRING. |
stringVar | The received result, a value of type String. |
Return value
Returns true if successful. Otherwise returns false. In order to get an error, call GetLastError() function.
Sample
Public Sub main () Dim Order Dim OrderSymbol Dim OrderComment Order = OrderGetID (1) OrderSelect (Clng (Order))Returns True if order selected successfully OrderGetString ORDER_SYMBOL, OrderSymbol OrderGetString ORDER_Comment, OrderComment AlertMessage Order symbol name for order & Order & is: & OrderSymbol & order comment & OrderComment End sub
See Also