Knowledgebase:
ErrorDescription
Posted by Mohammad Rahhal, Last modified by Rawan Al Hourani on 16 July 2017 02:23 PM

Syntax

Public Function ErrorDescription(errorNumber As Integer)As String

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

Parameters

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.

Sample

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))
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