Knowledgebase:
GetLastError
Posted by Mohammad Rahhal, Last modified by Rawan Al Hourani on 07 March 2016 11:49 AM

Syntax

Public Function GetLastError( )As Integer

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 x

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

AlertMessage GetLastError() 'will return the number of the error which is 6 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