Previous Page | Next Page

SAS Component Language Dictionary

_SELF_



Contains the identifier of the control for the currently executing method, or the identifier of the FRAME entry if the FRAME entry is not running as a method
Category: System Variable

Details
Example
See Also

Details

_SELF_ is a system variable that is provided automatically by the FRAME entry in SAS/AF. The SCL compiler automatically creates a space for it in the SCL data vector.

_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 SCOM object,  */
      /* 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

_METHOD_

SEND

SUPER

USECLASS

_VALUE_

Previous Page | Next Page | Top of Page