VARMODE |
varmode is used to determine if a mask variable can be entered or is displayed.
varmode ( field_name [, exp_index ] )
|
Element |
Description |
Restrictions |
|
field_name |
[ class ] variable_name. |
It must correspond to the field of an open mask. |
|
exp_index |
Integrer expression of the variable index. |
The index must be in the interval defined by the repetition factor. |
# Automatic process linked to a screen
If varmode([M]BPCNUM,(index))=0
mkstat = 0 : Call C_BPCNUM([M]BPCNUM)
....
Endif
varmode is used to determine if a mask variable can be entered or is displayed.
varmode contains one or two arguments (the second one being equal to zero by default). In the case of a sized field, a second argument will be given. It is possible to use the index Adonix system variable that gives the current index.
The varmode function returns an integer that is:
0 : for an enterable field (without diszo nor grizo)
1 : for a displayed or invisible field.
Moreover, in an enterable field, the varmode function returns an integer that is:
1 : following a Grizo on an enterable field.
2 : following a Diszo on an enterable field.
This is a new function.
|
Copyright © Sage 1999 - 2007 |