Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List of tables in a database
Message
From
07/02/2000 18:46:10
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australia
 
 
To
07/02/2000 18:43:03
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00328554
Message ID:
00328569
Views:
20
Hi Gnana,

Sorry, i made a typo. Replace USE (aTableList[nLoop,1]) EXCLUSIVE with USE (????????.objectname) EXCLUSIVE.

Gavin...

>Hi Gnana,
>
> You could try something like this ( with appropriate error checking of course ).
>
>
>CLOSE DATA ALL
>
>USE ????????.dbc
>
>SCAN FOR UPPER(objecttype) = "TABLE"
>    SELECT 0
>    USE (aTableList[nLoop,1]) EXCLUSIVE
>    PACK
>    USE
>ENDSCAN
>
>
>Regards,
>   Gavin...
>
>
>
>>If I have to iterate through all the tables in the database and pack them all, is there a simple command to do it? If not, what command would I use to obtain the list of tables in a database, so I could iterate them.
>>
>>Thanx
>>Gnana
Previous
Reply
Map
View

Click here to load this message in the networking platform