TJ)
The DESL Registers
| . |
(Begin modifications on 111302) DESL provides the means to set switches for use in equations or conditional input if or while blocks and to pass arguments to commands other than by directly entering the appropriate values/strings as parts of argument lists. There are 99 name and 99 value registers which may be used. The name and value registers are referenced in DESL input by *N# or *V#, respectively, where the symbol # represents a number from 1 to 99. Each name register can contain an up-to 16-character string. Each value register can contain 1 real value. The "V" and "N" characters MUST be specified in UPPER case. The first 10 of each type are system registers and may only be read. The last 89 are user registers and can read or written. See the register, if, while, and eqn commands for examples of the use and more discussion of the DESL registers. Examples of the use of registers are given below. (1) Passing in register settings to an argument list :
reg set *N11 = alpha reg set *N12 = run10 print files *N12 names *N11 cl cd go Any register names used as dummy arguments in an argument list or on a command line CANNOT be a part of a more complex string; it MUST stand alone. The following example would NOT work : ... arg*N13 ... The register name "*N13" is NOT a stand-alone register name and would, therefore, NOT be substituted for. (2) Passing in a register setting to an equation file :
reg set *V11 = *V12 + 10 eqn files test2 eqfilen eqn1 go |
where the contents of the equation file "eqn1" are :
factor=reg(1) newfac=factor*4.
In the future the current DESL registers will be replaced with the general purpose and universally available global variables.
|
30 Research Drive Hampton, VA 23666 Voice: (757) 865-1400 Toll Free: (800) 288-3998 FAX: (757) 865-8177 |