![]() Chapter Contents |
![]() Previous |
![]() Next |
| _VALUE_ |
| Category: | System Variable |
| Details | |
| Example | |
| See Also |
| Details |
_value_=_value_;
If the FRAME entry component has a character value, then you must declare _VALUE_ as a character variable using the DECLARE or LENGTH statement.
Numeric FRAME entry components and character FRAME entry components cannot share the same methods if the methods use _VALUE_, because _VALUE_ cannot be declared as both a numeric and character variable in the same SCL entry. Doing so results in one of the following execution errors:
ERROR: Expecting string ($),
received SCL number (symbol '_VALUE_').
ERROR: Expecting number (#),
received SCL string (symbol '_VALUE_').
_VALUE_ has a valid value only when a FRAME entry or a method for a FRAME entry component is running.
| Example |
Suppose a FRAME entry contains two Version 6 text entry controls, OBJ1 and OBJ2. OBJ1 is subclassed, and its _select method is defined as follows:
length _value_ text $20;
SELECT: method;
_frame_._getWidgets('obj2',obj2);
obj2._getText(text);
_value_ = text;
endmethod;
When OBJ1 is modified, the _select method queries the object identifier for OBJ2 and retrieves its value. It then assigns that value to OBJ1 by assigning TEXT to _VALUE_.
| See Also |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.