Syntax
Public Function SymbolInfoString(SymbolName As String, propId As ENUM_SYMBOL_INFO_STRING, ByRef Val As Variant) As Boolean
Description
This function is used to get string symbol information for a given symbol according to property ID andreceive the result on Val parameter.
Parameters
Key | Description |
SymbolName | Trading Symbol name,value of type String. |
propId | The information to get it value, a value of typeENUM_SYMBOL_INFO_STRING. |
Val | The received result, value of type String. |
Return value
Returns true if success result.In order to get an error, call GetLastError() function.
Sample
Public Sub main () Dim SymbolName SymbolName =ChartSymbol (0) Dim Result IfSymbolInfoString (SymbolName, SYMBOL_BANK, Result) then AlertMessage Bank name for the & SymbolName & is: & Result End IF End sub
See Also