error() Function

The error() function retrieves the TCL command used to activate the program and loads it into a specified variable.

Syntax

error()

The parentheses following the function are required, and never contain any arguments. Without the parentheses, it is a variable.

NOTE

This does not work from a Proc or from an execute statement.

D3 users are advised to use the tclread statement instead.

Example(s)

If the one-line, cataloged program called test is executed as shown, it displays the command line.

test

001 crt error()

See Also

BASIC Functions, procread Statement, procwrite Statement, tclread Statement