Chapter Contents

Previous

Next
NSELECT

NSELECT



Returns the number of rows that have been selected in a selection list

Category: Extended Table


Syntax
Details
Example
See Also

Syntax

num-rows=NSELECT();

num-rows
contains the number of selected rows.

Type: Numeric


Details

Because you can define extended tables only in SAS/AF software, you cannot use NSELECT in FSEDIT or FSVIEW programs. NSELECT is valid only for PROGRAM entries. FRAME entry controls must use the _getNselect 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

Return the number of selected rows:

nsel = nselect();
_msg_ ='You have selected ' || nsel || ' rows.';

See Also

ISSEL

SELECT

SELECTED

UNSELECT


Chapter Contents

Previous

Next

Top of Page

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