Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine what dbc a table belongs to
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00392030
Message ID:
00392036
Vues:
16
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform