TCLREAD

TCLREAD


TCL Index Level THEN
Syntax TCLREAD variable  
Category BASIC
Type Statement
Description loads the TCL command used to activate the program into a variable.

The program must be the program called from TCL. "TCLread" will not work when called from a subroutine or from "enter" or "TCL" statements. This statement allows parameters to be passed from TCL to a program directly without processing. Individual parameters can be extracted using the "field" function.
Options
See Also statements & functions PROCREAD FIELD PROCWRITE ERROR u0003 SENTENCE
Example "tclread" is used to extract the file name and item-id from the "tcl" command line.  The name of the program is "show".  Here is a sample TCL command using the "show" program:

show bp testprog

program show
tclread sentence
filename=field(sentence,' ',2)
itenname=field(sentence,' ',3)
Warnings
Compatibility D3 7.0 AP
TCL Index Level THEN