![]() Chapter Contents |
![]() Previous |
![]() Next |
| Data Set Data Model: _findRow |
| Syntax | |
| Details | |
| Example | |
| See Also |
Syntax |
| CALL SEND (object-id, '_findRow', find-request<, startrow>); |
| Argument | Type | Description |
|---|---|---|
| find-request |
N | specifies the identifier of an SCL list that contains the find request |
| startrow |
N | specifies the row on which to start the search. The search begins
with startrow. If the find is successful, startrow
returns the row number of the match, otherwise it returns
-1. By default, if no start-row is defined, the search begins with the current row plus
1. If there is no current row, the search begins with row 1. |
| Details |
The find request should contain one or more character list items. Each item can use standard WHERE clause syntax and is handled as an additional request.
| Example |
The following example uses the _findRow method and the _repeatFindRow method. This example assumes you have created a frame with a data table named TABLE and two push buttons named BUTTON1 and BUTTON2.
| |
length charval $ 15;
INIT:
call send(_frame_,'_getWidget',
'table',tabid);
call send(tabid,'_setDataset',
'sasuser.crime');
return; |
| | BUTTON2: row+1; call send(tabid,'_repeatFindRow',row); put row=; return; |
| See Also |
_repeatFindRow.
Note: The _findRow method cannot be called from the model's SCL entry. ![[cautionend]](../common/images/cautend.gif)
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.