Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a command that tells what DB a table is in ?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00816559
Message ID:
00816565
Views:
30
Hi Tom,

You can use:

lcDataBase =CURSORGETPROP( "DATABASE",lcTableName )

The name of the database that contains the table or view will be returned. If it is a free table, an empty string will be returned.

Also check out the INDBC() function, but they probably is not what you want...CURSORGETPROP is!

Cheers,
Bob

>I have a table which is open. How do I programmatically check which DB it is in?
>
> I can't find any commands that tell me that answer.
>
> Thank you.
Previous
Reply
Map
View

Click here to load this message in the networking platform