Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DATA DRIVEN CONTROL
Message
 
À
01/06/1999 16:51:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00225111
Message ID:
00225282
Vues:
21
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform