Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic label caption
Message
From
18/06/2001 22:16:56
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00520809
Message ID:
00520844
Views:
13
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
Previous
Reply
Map
View

Click here to load this message in the networking platform