![]() Chapter Contents |
![]() Previous |
![]() Next |
| Extended Table: _selected |
| Syntax | |
| Example |
Syntax |
| CALL NOTIFY (extended-table-name, '_selected', in-nth-selection, out-row-number); |
| Argument | Type | Description |
|---|---|---|
| in-nth-selection |
N | the nth row selected |
| out-row-number |
N | row number of the nth selected row |
| Example |
This example returns the row number for the next-to-last row selected by the user. To do this, it first uses the _getNselect method to retrieve the total number of selected rows. The _selected method uses this number to calculate the next-to-last selected row (NUM_SELECTED-1), for which it determines the row number and assigns it to the variable ROW_NUM.
call notify('table','_get_nselect_',
num_selected);
if (num_selected > 2) then do;
call notify('table','_selected_',
num_selected-1,row_num);
put "The next to last row selected is
row: " row_num;
end;
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.