Syntax
Public Function ErrorDescription(errorNumber As Integer)As String
Description
This function is used to return a description of the error that occurs 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 xAlertMessage SymbolInfoDouble("EUR/USd",SYMBOL_ASK,x) 'Passed wrong symbol name[names are case sensitive].=>FalseAlertMessage ErrorDescription(GetLastError()) 'Returns a description of the error "invalid Symbol" in this caseEnd Sub
See Also