Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is a table a member of a DBC?
Message
 
To
27/04/2001 10:46:56
Rebecca Stottlemire
Kansas State Department of Commerce
Topeka, Kansas, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00500716
Message ID:
00500782
Views:
19
>I need to check to see if a table is a member of a DBC (or a free table)
>before using it. Is there a way to do this? I can't find anything.
>Thanks,
>Becky

Try this

FUNCTION IsTableInDatabase

LPARAMETERS tcTable,tcDatabase

SET DATABASE TO &tcDatabase.

LOCAL laDBArray[1]
=ADBOBJECTS(laDBArray,'Table')
RETURN ASCAN(laDBArray,UPPER(tcTable))#0

Marcel
Previous
Reply
Map
View

Click here to load this message in the networking platform