Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- RaSQL/B 6.1a for Clipper - <b>n_xatable()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_XATABLE()
Store Xtrieve dictionary table names in an array

Syntax
N_XATABLE([<aTable> [, <aFile>]])

This function is for users of Xtrieve, a Btrieve file manager available from 
BTI.  The source code can be found in SNIPPETS.PRG.

Arguments
<aTable> is an array that will receive the names of Xtrieve tables from the 
data dictionary.

<aFile> is an array that will receive the associated Btrieve file names.

Returns
N_XATABLE() with no arguments returns the number of tables in dictionary.

Remarks
N_XATABLE() fills the first (or only) array with the names of Xtrieve tables 
from the data dictionary. If you specify a second array, RaSQL fills it with 
the associated Btrieve file names.

You must declare each receiving array with enough elements to hold the 
anticipated number of table names. If the array is too short then trailing 
entries will be lost.

Use N_XATABLE() with no arguments to determine  the proper size of the 
receiving arrays.

Example
* Display list of table names with Menu
* Define receiving array of proper size
DECLARE tables[N_XATABLE()]
N_XATABLE(tables)  && Returns all table
                   && names in data 
                   && dictionary
@ 1, 0 MENU tables


See Also: N_XFMAP()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson