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:
00225282
Views:
20
Gar,

The Data Environment does open the database for you, but it does not make that database the current one (SET DATABASE TO ...). I would suggest that you give your lable class a few properties to record the database, table, adn field of interest. Then your code could be;
* Label Init
SET DATABASE TO (This.cDatabase)
This.Caption = DbGetProp(This.cTable+This.cField, "FIELD", "CAPTION")
This way you set the properties in the form designer when you drop the label in and the init handles setting the caption.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform