NOLIGN |
nolign is used to access the line number for input to a table.
Shortint [S]nolign
# in management that is not an
OBJect
# screen filled from table
# one record [STA] per row of the table
nolign=0
Filter [STA] Where VCRTYP = 1 & VCRNUM=LNUM
& Order By ITMREF ; ALLDAT
For [STA]
nolign+=1
[M] = [F]
[M]YQTYSTUACT (nolign) =
[F:STA]QTYSTUACT
Next
Filter [STA]
[M]NBLIG = nolign
Extract from a mask: an NOL variable is used in a scrolling table to number the lines. This variable called in the 'Line' field of the foot of table variable has the following properties:
|
Name |
NOL |
|
Rank |
below that of the table |
|
Repeat factor |
1 |
|
Initial value |
*nolign |
nolign is a variable giving the number of the current line.
It is used for input to a scrolling table, when assigning classes. We describe its behaviour in each of the following situations.
When inputting to scrolling tables, nolign contains the current line number being entered; nolign may also have a value between 1 and the number of lines entered.
When assigning class to class ([M]=[F] for example), if one of the variables is a table with a number of dimensions equial to the number of dimensions of the other variable plus one, the data transfer is made using as the last index nolign -1 for the variable with the greater number of dimensions. Thus nolign is frequently used in the write loop index of a table to a file.
nolign may be modified:
· by assignment in a routine,
· automatically when entering a mask,
· in input to a scrolling table by activating an option (standard or specific) if this involves entering a line number (nolign= line number entered) or a range of lines (the range is given by the variables nolign and nolign1).
No associated errors.
|
|