QMSetLeft(), QMSetRight()

Top  Previous  Next

 

The QMSetLeft() and QMSetRight() functions set the scanning position of an alternate key index at the extreme left or right of the data.

 

 

Format

 

VBQMSetLeft ByVal FileNo as Integer, ByVal IndexName as String

 

Cvoid QMSetLeft(int FileNo, char * IndexName)

 

ObjSession->SetLeft(FileNo, IndexName)

 

where

 

Varis the variable to receive the index key value associated with the returned list.

 

FileNois the file number returned by a previous QMOpen() call.

 

IndexNameis the name of the alternate key index to be used.

 

ListNois the select list number (0 to 10).

 

 

The QMSetLeft and QMSetRight functions are used with QMSelectLeft() and QMSelectRight to set the scan position to the first or last entry in an alternate key index.

 

The QMStatus() function returns zero if the operation is successful, non-zero if it fails because the index does not exist.