Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic label caption
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00520809
Message ID:
00520843
Views:
16
Nick,

To fix a slight error in the other two responses:

ThisForm.Label1.Caption = 'This payperiod is ' + TRANSFORM(payperiod)

You should also consider using a Textbox that is formatted to look like a label (BackStyle = 0 Transparent, BorderStyle = 0 None, ReadOnly = .t., In GotFocus() return .f. if you don't want them to be able to copy the value to the clipboad. In Init() this.BackColor = this.parent.BackColor). This control has a native Refresh() where you can put code to make the .Value dynamic.

>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
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform