Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamic label caption
Message
De
18/06/2001 22:16:56
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00520809
Message ID:
00520844
Vues:
14
Hi Nick,
Just to round out what's been said:
My base class for labels has a Refresh method added to it for this type of situation. So make your own class based on label and add a Refresh method.
Now when you use that class you can put this code in it.
This.Caption = 'This payperiod is ' + TRANSFORM(payperiod) + '.'
In the Refresh of the Form, or some other logical place, put the code to call the label's Refresh.
This.Label1.Refresh()





>How can I make my label caption dynamic in terms of that it changes by adding a variable. For example: (payperiod =
>
>payperiod = 10
>
>label1 = 'This payperiod is'
>
>
>How can I combine a variable and a label caption to create a label that will say:
>
>This Payperiod is 10
>
>Thanks
>Nick Patel
Charlie
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform