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


Public Function ErrorDescription(errorNumber As Integer)As String

This function is used to return a description of the error that occurrs during the execution.


Key Description 
errorNumber Error number that can get it by using the GetLastError method , value of type integer. 

Return value

Returns a description of the error as a value of type string.


Public Sub main()

  Dim x

AlertMessage SymbolInfoDouble("EUR/USd",SYMBOL_ASK,x) 'Passed wrong symbol name[names are case sensitive].=>False

AlertMessage ErrorDescription(GetLastError()) 'Returns a description of the error "invalid Symbol" in this case

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