Syntax
Public Function GetLastError( )As Integer
Description
This function used to get the error number that occurrs during the execution.
Parameters
No Parameters.
Return value
Returns the error number as a value of type integer.
Note:
You can get the error description by passing error number to ErrorDesription( )function.
Sample
Public Sub main() Dim xAlertMessage SymbolInfoDouble("EUR/USd",SYMBOL_ASK,x) 'Passed wrong symbol name[names are case sensitive].=>FalseAlertMessage GetLastError() 'will return the number of the error which is 6 in this caseEnd Sub
See Also