Chapter Contents

Previous

Next
Check Box: _getValue

Check Box: _getValue



Returns the numeric value assigned to a check box

Value: Inherited from Widget


Syntax
Details
Example

Syntax

CALL NOTIFY (check-box-name, '_getValue', checkbox-value);

Argument Type Description
checkbox-value
N returns the numeric value assigned to the check box. This value is blank if the check box is not active.


Details

If a check box has been assigned a character value in the Value on Selection window, the _getValue method causes a program halt. Use the _getText method to return the value of a check box that has a character value.


Example

If the number 4 was assigned to the check box in the Value on Selection window and the check box is active, _getValue assigns the value 4 to the SCL variable VALUE:

   call notify('checkbox','_get_value_',
                value);
   if (value=4) then
      _msg_='You have made reservations
       for four.';


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.