SAS Component Language Dictionary |
Returns the number of the active button in a radio box or check
box or the active station in a choice group
Category: |
Control or Field
|
station=ISACTIVE(var-name<,row>);
|
-
station
-
contains the status of a selection:
>0 |
the number of the button or station that is active |
0 |
no button or station is active |
Type:
Numeric
-
var-name
-
is the radio or choice group to be
tested.
Type: Character
-
row
-
is the row number when the button
or choice group is in the scrollable section of an extended table in a PROGRAM
entry. Do not specify row in programs for FRAME
entries. Specify row only when you want to check
the active station from outside the extended table's getrow or putrow section.
Type: Numeric
You cannot use ISACTIVE in FSEDIT or FSVIEW
programs.
Window controls can also use the _isActive method.
Suppose your application has a radio box
named HOBBY in which the third button displays the value TENNIS. Branch to an appropriate program when a user selects the TENNIS station
(either by pressing ENTER or by clicking the
mouse button).
if (isactive('hobby')=3)
then call display('tennis.frame');
ACTIVATE
GRAY
ISGRAY
UNGRAY
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.