Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine what dbc a table belongs to
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00392030
Message ID:
00392036
Views:
15
>Hi all,
> Simple quiestion that I can't seem to find a simple answer to. How do I get the name of the dbc that a table belongs to. If you open the table the dbc is opened but not selected so DBC() won't work becuase there could be more than one dbc open. I can open the table low level and read it or I can open the dbc, use adbobjects() and then aScan the array but it seems to me there must be a VFP function that I'm missing here.
>
>Many thanks in advance.

If the table is open, use CURSORGETPROP("Database","alias of the table"). If the table is a free table, this will return the empty string ("").
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform