Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adatabase command question
Message
From
01/10/2005 08:48:55
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01055216
Message ID:
01055226
Views:
13
>Hi,
>
>Hmmm. I get 0 for nTel1 (which is correct). Docs say "If no databases are open, ADATABASES( ) returns 0 and the array isn't created". Doesn't say an existing array will be destroyed in these circumstances.
>So behaviour is as expected ?
>Regards,
>Viv
>

Yes,
every AXXXXX() function work in this manner:
if none elements are founds none operations is done.

>>Tore, this not fix the issue
>>
>>try
>>
>>CREATE DATABASE TESTdata2005.dbc
>>nTel1	= ADATABASES(laGroep1)
>>
>>?lagroep1(1,1)    && gives data2005
>>
>>CLOSE DATABASES
>>
>>nTel1	= ADATABASES(laGroep1)
>>
>>?lagroep1(1,1)
>>
>>? nTel1 && look here !
>>
Previous
Reply
Map
View

Click here to load this message in the networking platform