DbReadPrev                                                                                           Function

 

DBREADPREV(dbName as Database , dbKey as anyVarType, varlist)

 

Description

Reads the previous record from the database in key sequence and sets dbKey to the value of the key found. Reads data for all variables in varlist. The database must have been previously opened with DBOPEN. Returns an integer result. See DBOPEN for a table of result codes. For DBREADPREV to work properly, the database position must have been set with  a valid record found with DBREAD, DBREADNEXT or DBREADPREV.

 

 

Example

Dim res as integer

Dim theKey as String

Res=DbReadPrev(CustomerDb, theKey, custName, custAddress, custPhone)