Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Concantenate
Message
De
20/08/2004 20:14:11
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
20/08/2004 15:31:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00934985
Message ID:
00935124
Vues:
20
>I added a label to the form and in the caption (Don't have value) I added THISFORM.Label33.caption = Addr1 + "," + Addr2. When I ran the database it displayed on the screen THISFORM.Label33.caption = Addr1 + "," + Addr2. I must be doing something wrong. Thank you for your fast reply. I have been trying to find our how to do this all day.

In the Property Sheet, you have to start expressions with "=", to evaluate them. For a simple example, the Caption of a Label might be "=date()" (without the quotation marks).

The alternative is to put the code in the Init() method, or in some other method.

BTW, as a general rule, a label should have a more significant name than "Label33". For example, if it contains an address, you might call it LblAddress.

The same rule applies to other types of controls.

The main reason is to make your program more readable.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform