ubase.countRecords
| Syntax |
ubase.countRecords (fnum)
|
| Params |
fnum is the number which identiÞes a uBASE database while it is open.
|
| Action |
Determine the number of records in a database.
|
| Returns |
The number of records in the indicated database
|
| 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 database are ordered arbitrarily.
|
| See Also |
ubase.getFirstRecord
|