Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DATA DRIVEN CONTROL
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00225111
Message ID:
00225284
Views:
17
>Gar,
>You can open a table without opening the database, so yes, you DO have to explicitly open the database for your DBGetProp() command to work. If you only have a single database, then you can put the command to open it in the parent class of your forms. If you are using several databases, or if you want this code to work in many apps, then you should probably put the correct database name in an application object or other source available to all data sessions.
>
>HTH
>Barbara
>
Barbara,

A correction, you cannot open a table without also opening its corresponding dbc. However, opening the table does not make its DC the current DBC and DbGetProp only works on the "current" database (SET DATABASE TO ...)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform