Chapter Contents |
Previous |
Next |
GRAY |
Category: | Control or Field |
Syntax | |
Details | |
Example | |
See Also |
Syntax |
rc=GRAY(var-name<,station<,row>>); |
0 | successful |
0 | not successful |
Type: Numeric
Type: Character
Type: Numeric
Type: Numeric
Details |
Users cannot select a FRAME entry control, choice group, or choice group station that is grayed.
For linked action fields in choice groups, the ACTION-type pair is considered one station. For example, the following line in a PROGRAM entry window defines three linked action fields:
& &A_____ & &B_____ & &C_____
To gray the linked action pair for field B, pass in 2 for the value of station, not 4.
Window controls can also use the _gray method. You cannot use GRAY in FSEDIT or FSVIEW programs.
Example |
Prevent users from selecting CONTINUE when the value of AGE is less than 21:
if (age<21) then rc=gray('CONTINUE'); else rc=ungray('CONTINUE');
See Also |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.