ubase.getFirstRecord

Syntax ubase.getFirstRecord (fnum)

Params fnum is the number which identiÞes a uBASE database while it is open

Returns The key for the Þrst record in the indicated database (see Notes).

Examples key = ubase.getFirstRecord (fnum)
for i = 1 to ubase.countRecords (fnum)
nextKey = ubase.getNextRecord (fnum, key)

ubase.deleteRecord (fnum, key)

key = nextKey

Deletes all the records from the database referenced by fnum (which may not be a good idea!)

Errors An error is produced if uBASE is not running or if fnum does not identify an open database.

Platform Notes uBASE runs only on Mac OS and is not a supported component of Frontier 5.0,

Notes ¥ The records in a uBASE database are ordered arbitrarily. ubase.getFirstRecord is part of a method for visiting each record in a database.

¥ If key refers to the last record in the database, or to a record which does not exist, the empty string is returned.

See Also ubase.getNextRecord

ubase.getPrevRecord

ubase.getLastRecord

ubase.countRecords

Discuss