MKSTAT

Contents


mkstat is used to return an error status for an input check, as well as to define conditions for display or entry of a field.

 

Class, type and dimension

Shortint [S]mkstat

 

Examples

# field action: Avant_saisie
# the field PRITYP cannot be filled
# if the variable GNOTATI is set to 1
Subprog AS_PRITYP(VALEUR)
Variable Integer VALEUR
If GNOTATI = 1
mkstat = 2
Endif
End

# field action: Check
# existence check on the third party sheet
# with entry blocked if third party non-existent
Subprog C_BPCPYR(VALEUR)
Variable Char VALEUR()
If GREP = "C" | GREP = "D"
    If VALEUR <> "" & VALEUR <> [M:BPC0]BPCNUM
        Call CONTROLE("BPR","",VALEUR,"",
mkstat) From CONTOBJ
    Endif
Else
    Call CONTROLE("BPR","",VALEUR,"",mkstat) From CONTOBJ
Endif
End

 

Description and comments

mkstat is an Adonix system variable whose initial value is 0. This value may be modified by the user as follows:

For checks, actions on the check field, after-zone, after-modif. mkstat may have the following values:

·         0 : the field is considered as valid. Go to the next field.

·         1 : the field is considered as invalid. An audible beep sounds, and you stay in the field being checked.

·         2 : the field is considered as invalid. You stay in the field being checked.

When preparing the display, in a pre-zone action on the field, mkstat may have the following values:

·         0 :         the zone will be displayed,

·         1 :         the zone will be neither displayed nor entered. It shall be reset,

·         2 :         the zone will be neither displayed nor entered.

When preparing the input, in a pre-input action on the field, mkstat may have the following values:

·         0 :         the zone will be available for input,

·         1 :         the zone will not be available for input, It shall be reset,

·         2 :         the zone will not be available for input,

For a button routine throughout the whole screen area, mkstat may have the following values:

·         0 : You stay in the field,

·         99 : You move to the next field, carrying out check, after-zone, after-modif. actions on the current field.

For a button routine on the bottom of table variables, mkstat may have the following values:

·         0 : You remain in the pre- button-routine situation.

·         4 : You move to the record modification situation, with the "ENREGISTRER" button therefore being activated.

 

Comments

The zonsui variable is to be used for "entry branches" for a zone, but not when you wish to avoid input to a zone. In the latter case, zonsui would be more complicated to use than mkstat.

 

Associated errors

No associated errors.

 

Associated key words

STATUSZONSUI - ZONSOR - ZC


CONTENTS


Copyright © Sage 1999 - 2007