Chapter Contents |
Previous |
Next |
SETROW |
Category: | Extended Table |
Syntax |
CALL SETROW(num-rows<,num-sel<,sel-order<,dynamic>>>); |
Type: Numeric
Type: Numeric
'Y' |
Selected items are highlighted and are moved to the top of the list in the order in which they are selected. |
'N' |
Selected items are highlighted, but they are not moved to the top of the list. (This is the default.) |
'A' |
The selection list window automatically closes when the user makes a selection if only one selection is allowed. This option is valid only if num-sel is 1. |
'B' |
Combines Y and A. |
Type: Character
'Y' |
specifies that the extended table is a dynamic table. Use the ENDTABLE routine in the getrow section to specify that no more rows are available. |
Type: Character
Details |
In PROGRAM entries, a regular extended table has a specified number of rows, and a dynamic extended table has an unspecified number of rows. You cannot use the SETROW statement in the getrow or putrow section of an SCL program. In order to use SETROW, you must have specified the EXTENDED TABLE attribute from the GATTR window.
You can also use both regular and dynamic extended tables as selection lists. The second and third arguments, num-sel and sel-order, define a selection list. Making an extended table a selection list automatically turns on the block cursor. Use FIELD to turn off the block cursor.
To define a dynamic table that is not a selection list, specify 0 for num-sel and ' ' for sel-order.
You can use SETROW only on extended tables. Because you can define extended tables only in SAS/AF software, you cannot use SETROW in FSEDIT or FSVIEW programs. FRAME entries must use the _setMaxrow method.
Examples |
Specify an extended table that has 20 rows:
call setrow(20);
Specify a selection list that has 20 rows. Three selections are allowed, and the selections are moved to the top of the table.
call setrow(20,3,'y');
Specify a dynamic table:
call setrow(0,0,'','y');
Specify a dynamic table to be used as a selection list. Three selections are allowed, and the selections are not moved to the top of the table.
call setrow(0,3,'n','y');
See Also |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.