ubase.nthFile
| Syntax |
ubase.nthFile (n)
|
| Params |
n is the sequential index of an open database file among all open databases.
|
| Action |
Determines the identifier for the nth currently open uBASE database.
|
| Returns |
The identifier (termed fnum in this documentation) which can be used to refer to the nth currently open file as long as the Þle remains open. Returns zero if fewer than n databases are open.
|
| Examples |
for n = ubase.countFiles () downto 1 » ubase.closeFile (ubase.nthFile (n))
Closes all open database files. |
| Errors |
An error is produced if uBASE is not running.
|
| Platform Notes |
uBASE runs only on Mac OS and is not a supported component of Frontier 5.0,
|
| Notes |
The Þle identifiiers (usually called fnum in these descriptions) are small positive numbers. If several files are opened in sequence, each index n will be equal to the fnum. However, if some files are closed, then the remaining identifiers may not continu equal each file's index n. You should always use ubase.nthFile if you need to determine an unknown fnum.
|
| See Also |
ubase.nthFile
|