Cell definitions

<< Click to Display Table of Contents >>

Navigation:  Reference > Commands >

Cell definitions

A cell definition command takes the form:

DW wvar = cell,

DC cvar = cell,

Here the value from a table cell is transferred to the variable.

The table should normally have been given values in an earlier stage. It is possible to transfer values from the current stage, but if this is a Tables Stage, run control parameter NOLOOP must have been set.

Note that the type of the cell must conform to the type of the variable being defined; unpredictable results will follow from an attempt to set a cvar to a numeric value, or a wvar to a character value.

If the variable is a cvar, its length must not be greater than 8, and the value of the cell must have been set from a cvar, and not from a %TEX function.

Examples of cell definition commands:

dw $wfrac=#fac(r4,c5),

dw $wnext=#345(e$icell+3.0,

dc $chap=#1(r0,c0),