SAS Component Language Dictionary |
Category: | Control or Field |
Syntax | |
Details | |
Examples | |
Example 1: Determining Whether an Extended Table Row Is Grayed | |
Example 2: Finding the Number of Stations in a Choice Group | |
See Also |
Syntax |
rc=ISGRAY(var-name<,station<,row>>); |
contains the return code for the operation:
is the number of the choice group station or the button in a radio box. Station must be greater than 0 and must be no greater than the total number of buttons in a radio box or the number of stations in a choice group.
is the number of the row when the control or choice group is in the scrollable section of an extended table. Row is valid for PROGRAM entries. Specify row only when you want to determine whether the station is gray from outside the extended table's getrow or putrow section.
Details |
Window controls can also use the _isGray method.
Because choice groups can be defined only in SAS/AF software, you cannot use ISGRAY in FSEDIT or FSVIEW programs.
Examples |
Test whether the choice group WINE at the third row of an extended table is grayed:
if (isgray('wine',0,3)) then do; ...SCL program statements... end;
Find out how many stations are defined for a choice group:
rc=gray('wine'); total=abs(isgray('wine'));
See Also |
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.