SET TEXTMERGE DELIMITERS

ADataBases()

This function fills an array with the list of open databases. It gives you both the name and the path for each database.

Usage

nCount = ADATABASES( aDatabaseArray )
Like the other array manipulation functions, ADATABASES() returns the number of rows in the array created. Similarly, if there are no open databases, ADATABASES() returns 0 and doesn't create or change (if it already exists) the specified array.

The function does not honor the setting of SET FULLPATH, but we think that's good. No matter what, the second column contains the full path to the database.

Example

CLOSE DATA ALL        && make sure no databases are open ? ADATABASES(aDbs)    && returns 0 OPEN DATA (_SAMPLES+"TasTrade\Data\TasTrade") ? ADATABASES(aDbs)    && returns 1

See Also

ADBObjects(), Array Manipulation, AUsed(), Open Database


View Updates

Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.



Hacker's Guide to Visual FoxPro 7. 0
Hackers Guide to Visual FoxPro 7.0
ISBN: 1930919220
EAN: 2147483647
Year: 2001
Pages: 899

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net