INDEX

Contents


index is the current index when entering dimensioned variables in a mask.

 

Class, type and dimension

Shortint [S]index

 

Examples

Extract from an entry screen: two addresses are entered, over 3 lines, respectively ADLIV and ADFAC, which should be the same by default.

The following zones will be used:

Name of zone
Rank
Repeat factor
Format
Default value

ADLIV
10
3
K:40X

ADFAC
20
3
K:40X
ADLIV(
index)

 

Description and comments

Index is used to obtain the current input index of a dimensioned zone (whether or not it is arranged as a scrolling table).

Issue has values beginning with 0 (unlike nolign which begins with 1).

 

Comments

In an entry mask for a dimensioned zone, only one initialisation or control expression may be given. Using the variable index which varies during entry, conditions dependent on the index may be defined, even if they take very different forms.

For example, several default values may be defined, either using a label in which the value of the indexvariable will be tested, or for example, using as a default value evalue(EXPRESSIONS(index)), EXPRESSIONS being a table of character strings containing the various default value expressions.

 

Associated errors

No associated errors.

 

Associated key words

NOLIGN


CONTENTS


Copyright © Sage 1999 - 2007