Chapter Contents

Previous

Next
Push Button: _getValue

Push Button: _getValue



Returns the numeric value assigned to a push button

Inherited from Widget


Syntax
Details
Example

Syntax

CALL NOTIFY (push-button-name, '_getValue', push-button-value);

Argument Type Description
push-button-value
N returns the numeric value assigned to the push button. This value is blank if the push button is not selected.


Details

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


Example

If the value 4 was assigned to the push button in the Value on Selection window, _getValue returns the value 4 and assigns it to the variable VALUE:

   call notify('pbutton1','_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.