Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro in form label
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01410246
Message ID:
01410268
Views:
35
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform