>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.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao