ubase.getLastRecord

Syntax ubase.getLastRecord (fnum)

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

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

Examples lastKey = ubase.getLastRecord (fnum)
key = ubase.getFirstRecord (fnum)
while key != lastKey
nextKey = ubase.getNextRecord (fnum, key)

ubase.deleteRecord (fnum, key)

key = nextKey

Deletes all records except the (arbitrary) last record from the database referenced by fnum.

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.getLastRecord can be part of a method for visiting each record in a database, or recognizing the last record.

¥ ubase.getLastRecord is not used as much as ubase.getFirstRecord

See Also ubase.getPrevRecord

ubase.getFirstRecord

ubase.getNextRecord

Discuss