Knowledgebase:
SymbolInfoString
Posted by Mohammad Rahhal, Last modified by Rawan Al Hourani on 16 July 2017 11:18 AM

Syntax

Public Function SymbolInfoString(SymbolName As String, propId As ENUM_SYMBOL_INFO_STRING, ByRef Val As Variant) As Boolean

This function is used to get string symbol information for a given symbol according to property ID and receive 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 type  ENUM_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


Back to VTL Client Script Index

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
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