SAS Component Language Dictionary |
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) | |
'D' |
Double click (An 'S' select event always precedes a 'D' double click event.) |
'C' | |
'P' | |
'S' |
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 |
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.