Chapter Contents |
Previous |
Next |
List Box: _getLastSel |
Syntax | |
Example |
Syntax |
CALL NOTIFY (list-box-name, '_getLastSel', row-number, is-selected<text>); |
Argument | Type | Description | |
---|---|---|---|
row-number |
N | returns the row number of the most recently selected or deselected item, or 0 if no selections have occurred | |
is-selected |
N | returns a value indicating whether the item is still selected: | |
>0 | the item is selected. (This value is the order in which the item was selected relative to the other items currently selected. For example, if the item was the second item selected, this value would be 2.) | ||
0 | the item is not selected | ||
text | C | returns the text of the list box item |
Example |
_getLastSel returns the last item and row selected in LISTBOX1:
length text $ 24; call notify('listbox1','_get_last_sel_', row,issel,text); if (row=0) _msg_="No selections have occurred'; if issel^=0 then _msg_="The last selected item was : " || text || " at row : " || row; else _msg_="The last deselected item was : " || text || " at row : " || row;
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.