Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Macro in form label
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01410246
Message ID:
01410268
Vues:
34
>Thank you
>
>Besides, I need to change the label caption as below
>
>thisform.labelmyLB.caption = "One"
>
>thisform.labelmyLB.caption = "Two"
>
>etc.

store 'Two' to ('thisform.Label' + myLb + '.caption) && Uses name expression

Using Christof's suggestion
oLabel = getpem('thisform','Label' + myLb)

with oLabel
   oLabel.Caption = 'My new caption'
   oLabel.Refresh()
endwith
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform