DbReadNext                                                                                           Function

 

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

 

Description

Reads the next 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 DBREADNEXT to work properly, the database position must have been set with DBRESET, or a valid record found with DBREAD, DBREADNEXT or DBREADPREV.

 

 

Example

Dim res as integer

Dim theKey as String

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