Chapter Contents

Previous

Next
ISSEL

ISSEL



Returns the selection number for a specified row of a selection list

Category: Extended Table


Syntax
Details
Example
See Also

Syntax

selection=ISSEL(row);

selection
contains the row's selection number, or 0 if the row is not selected.

Type: Numeric

row
is the number of the row that is being queried.

Type: Numeric


Details

You can use the ISSEL function in two ways:

Because you can define extended tables only with SAS/AF software, you cannot use ISSEL in FSEDIT or FSVIEW programs. ISSEL is valid only for PROGRAM entries. Window controls must use the _issel method.

In order for an extended table to be considered a selection list, you must specify a number of selections in the SETROW routine.


Example

Suppose that your application has a selection list with ten rows and that the user has just selected row 3 and then row 5. If ISSEL is called with the row argument equal to 5, then the value 2 is returned for selection, because row 5 was the second selection.

You can also use ISSEL in the putrow section of an extended table application to test whether a row is selected. Call the function for the desired row and check the selection value to see whether its value is positive (the row has been selected) or zero (the row has been deselected):

PUTROW:
   if (issel(_CURROW_)) then
      do;
        ...SCL statements to process the selected row...
      end;
   else
      do;
        ...SCL statements to process the deselected row...
      end;
return;

See Also

NSELECT

SELECT

SELECTED

UNSELECT


Chapter Contents

Previous

Next

Top of Page

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