Returns the current run-time error message.
[ sError = ] GetErrorMsg ( )
The GetErrorMsg procedure syntax has the following parts:
Name |
Type |
Description |
sError |
BString |
Error message |
This function can be used only when a non-fatal and recoverable run-time error occurred and the OnError procedure was called or inside a catch clause within a Try statement. Otherwise, the function returns an empty string.
The following example displays an error message in a message box.
OnError()
{
MsgBox(GetErrorMsg())
......
}