DISZO

Contents


"Diszo" is used to grey out and make it impossible to load all or part of the fields in a mask. Unlike Grizo,"Diszo" stipulates that these fields have a meaning in the context.

Syntax

Diszo [ class ] [ field_list ]

Parameters

Element

Description

Restrictions

class

In the absence of this parameter, the default mask is used.

This class describes an open mask by the mask order.

field_list

List of id_zones separated by the character ','.
By default, all the fields in the mask are involved.

None

id_zone

Identification of a field zone under one of the following forms:
variable_name
variable_name '('
exp_ind ')'
int_zones
rank_no
int_ranks
"="expr_c

The fields where the name is given must be defined in the corresponding mask.

exp_ind

Integer expression where the value is the index of the variable to be displayed.

The index must be in the interval defined by the repetition factor.

int_zones

Field interval, that is to say two field names separated by '-' (minus sign).

The two fields must belong to the corresponding mask.

rank_no

Integer number where the value is the rank number.

1 <= rank_no <= 99

int_ranks

Interval for the ranks, that is to say two rank numbers rank1 and rank2 separated by the character '-'

rank1 <= rank2

expr_c

Alphanumeric expression where the result is a variable name or a rank

 

Examples

# Greying-out in the current mask, of fields of rank 1, 15 to 30
# and of fields CHP1, VAR to FIN.
Diszo 1, 15-30, CHP1, VAR-FIN

# Greying-out in the abbreviation mask ABC, of fields of rank 20 to 30
# and of field TOTO for index I+1.
Diszo [ABC]20-30, TOTO(I+1)

# Greying-out of all the fields of the abbreviation mask ABC.
Diszo [ABC]

Description and comments

"Diszo" is used to grey out and make it impossible to load all or part of the fields in a mask. Unlike Grizo,"Diszo" stipulates that these fields have a meaning in the context.

"Diszo" is used for fields declared as being enterable in the mask. It becomes impossible to enter these fields and they are displayed in black letters on a grey background. The on-focus and contextial menu are maintained on these fields.

When fields are greyed-out via "Diszo", the greying-out order being used always derives from the entry ranks and the position of the fields on the screen. As a consequence, in order to change this greying-out order, it is necessary to use several "Diszo" instructions.

Similarly, when giving an interval of the fields to be greyed-out, it is the entry order that is considered to determine which are the fields in the interval.

A grid can be fully or only partly greyed-out. The syntaxes are as follows:

In a grid, a greyed-out field appears in a grey font. Yet if the field has a color attribute via pcolor, its color is kept. On fields other than the variable at the bottom of the grid, the Diszo enables neither the on focus nor the contextual menu.

New to version 130

This is a new instruction.

Associated keywords

Mask - Default - Actzo - Grizo - Affzo - Effzo


Contents

Copyright © Sage 1999 - 2007