Chapter Contents |
Previous |
Next |
_SELF_ |
Category: | System Variable |
Details | |
Example | |
See Also |
Details |
_SELF_ has a valid value only when the FRAME entry's SCL code is running or when a method is running.
See USECLASS for information on bypassing _SELF_ references in a USECLASS block.
Example |
Suppose a FRAME entry contains an icon. The icon's _select method is defined as follows:
SELECT: method; /* If the icon is a Version 8 icon, */ /* the following statement could be */ /* _self_.icon=2; */ _self._setIcon(2); endmethod;
When a user selects the icon, the _select method executes, and _SELF_ contains the identifier of the icon. In a FRAME entry, _SELF_ contains the identifier of the FRAME entry if the FRAME entry is not running as a method. For example, you can use _SELF_ to send a method to the FRAME entry from the INIT section.
INIT: _self_._setMsg_('in init section'); return;
See Also |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.