SAS Component Language Dictionary |
Category: | Control or Field |
Syntax | |
Details | |
Example | |
See Also |
Syntax |
rc=UNGRAY(var-name<,station<,row>>); |
contains the return code for the operation:
0 | |
0 |
is the number of a field within the choice group or the number of a button within the radio box.
is the number of a row when the choice group is in the scrollable section of an extended table. The row parameter is valid for PROGRAM entries but not for FRAME entries. Specify row only when you want to ungray a station from outside the extended table's getrow or putrow section.
Details |
You can use UNGRAY along with GRAY to control the availability of a choice group, a station, or a window element, based on the program flow.
When a window element is ungrayed, it becomes unprotected and reverts to its normal color. An ungrayed window element can once again receive input such as mouse clicks. FRAME entry controls can also use the _ungray method.
Example |
Make a station available only when the value of variable DEPT is ADMIN:
if (dept='ADMIN') then rc=ungray('personal',3); else rc=gray('personal',3);
See Also |
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.