Chapter Contents

Previous

Next
_EVENT_

_EVENT_



Contains the type of event that occurred on a FRAME entry control

Category: System Variable


Details
Example
See Also


Details

_EVENT_ is a character system variable. It is provided automatically by the FRAME entry in SAS/AF, and the SCL compiler automatically creates a space for it in the SCL data vector.

In order to use _EVENT_, you must use the DECLARE or LENGTH statement to declare it as a character variable. If _EVENT_ is not declared, the following error is produced when the _select or _objectLabel method executes:

ERROR: Expecting string (P), received SCL number
       (symbol '_EVENT_').

_EVENT_ has a valid value only when a window control's _select or _objectLabel method is executing. _EVENT_ can have one of the following values:
' ' (blank) Modification or selection
'D' Double click (An 'S' select event always precedes a 'D' double click event.)
'C' Command
'P' Pop-up menu request
'S' Selection or single click


Example

The following _select method prints the value of _EVENT_ when a window control is modified.

length _event_ $1;

SELECT: method;
   call super(_self_,_select);
   put _event_=;
endmethod;

See Also

_METHOD_

_SELF_

_STATUS_

_VALUE_


Chapter Contents

Previous

Next

Top of Page

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