error() function

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



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.


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

001 crt error()