Ole4D Methods

OCLastError(p_nError;p_SysMessage;p_Extended;p_ScriptLineN; p_ScriptChar;p_ScriptLineT)


Returns the last error occurred in plug-in.The last error might be a plug-in error or a vbs error.
In case of a plug-in error only p_nError, p_SysMessage, p_Extended are relevant.
If the error occurred as result of a script evaluation p_ScriptLineN, p_ScriptChar and p_ScriptLineT are also relevant. They indicate the line number, the character number and the content of the line where the error was generated.

Parameters
Parameter Type   Description
p_nError Longint <- Variable where to return the blob operating system error code for the last error.
p_SysMessage String <- System message for the error.
p_Extended Text <- Extended message of the error.
p_ScriptLineN Longint <- Line number of the script error, in case the error has occurred in a script.

p_ScriptChar Longint <- Char number in the line p_ScriptLine where the script error has occurred. Valid only in case of a script error.
p_ScriptLineT String <- Line of code in VBScript where the error occurred .


Remarks
Resulting value of p_SysMessage is retrieved from the operating system. It is the system defined message for error with code.