Exec.OnError

Description

Syntax

Parameters

keywords
(string) Single string comprising any combination of the keywords, separated with spaces.

Possible Values

none
Do not display any error messages.
file
Write errors messages to file ErrorLog.txt only.
  • must be in same folder as .pcf
  • each error creates a line of space-separated info
    • yyyymmdd
    • hhmmss
    • scriptname (or *)
    • linenumber (or 0)
    • messagetext
      • newlines replaced with blanks
display
Display messages on screen only.
both
Write error to file and display on screen.
hook
Run command list HookErrors whenever an error occurs.
unhook
Do not run command list HookErrors.
clear
Set _LastError_ global variable to "".
Alternative form of: _LastError_=""

Examples

Notes