.

SETMOK

Contents


"Setmok" is used to validate or invalidate a screen.

 

Syntax

"Setmok" class [ With ] exp

 

Parameters

Element

Description

Restrictions

class

Identifier of mask by class

the mask must be opened by the
Mask command.

expr

Alphanumeric expression whose values are:
0: the screen is invalid
other: the screen is valid.

None

 

Examples

# example 1: display of the complete mask causes it to be valided
# if necessary, setmok is used to avoid the validated status of the screen
Affzo [STO]
Setmok [STO]with 0

# example 2: same result as example 1
# display of the mask by the positions does not cause its validation
Affzo [STO]1-99

# example 3:
# forcing validated status
Setmok [STO]with 1

 

Description and comments

In order to optimise response times, actions on the field are not longer executed when a screen is considered valid.

A screen is valid after the Actzo and Affzo instructions on the mask class.
Conversely, the Actzo and Affzo instructions on rank(s) or field(s) do not alter the validity status of the mask.

A screen is invalid as soon as a field has been modified, or after the effzo instruction.

If in a particular case, this procedure is undesirable, a screen may be validated or invalidated by the instruction Setmok.

If the parameter exp is equivalent to 0 (example 1), the screen will be considered invalid and the field checks will be performed.

If the parameter exp is other than 0 (example 3), the screen will be considered valid and the field checks will not be performed. This will improve performance.

 

Associated errors

Error

Description

 

 

 

Associated key words

Actzo - Affzo - Effzo

 


Contents


Copyright © Sage 1999 - 2007