PreviousNextIndex

GET-FIRST( ) method

Moves a query object’s result list pointer to the first row.

Return type: LOGICAL

Applies to: Query object handle

Syntax
GET-FIRST ( NO-LOCK | SHARE-LOCK [ , NO-WAIT ] 
  | EXCLUSIVE-LOCK [ , NO-WAIT ]  ) 

NO-LOCK
SHARE-LOCK
EXCLUSIVE-LOCK
NO-WAIT

GET-FIRST() returns TRUE if the first record in the query is found. If the query is not open or the first record cannot be found (query is empty), the method returns FALSE. If the query object handle is invalid, the method returns the Unknown value (?).

A query that includes a BREAK BY phrase becomes a FORWARD-ONLY query. In this case you cannot use the GET-FIRST() method. If you do, the AVM raises ERROR.


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex