error_msg

Returns last error message.

Available in:

Apps (win) Apps (char) Reportwriter RPC Standalone PL
X X X X X

Syntax

string error_msg()

Description

Returns the last error_msg encountered.

Example

Logs the error_msg after a trap() call.
if (trap({list_open("phone.lst",100);}))
  log("listopen.log",error_msg());