Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Labels Caption
Message
From
20/02/2004 08:46:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
20/02/2004 08:38:19
Alex Shevchenko
Cb "westinkombank"
Lutsk, Ukraine
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00879149
Message ID:
00879152
Views:
15
>Hi
>I need change Label1.Caption depending of value PbLE (1 or 2).
>In properties for Lavel1.Caption =iif(PbLE=1,"text 1","text 2")
>But when PbLE value interactiv changed Label1.Caption doesn't change, Thisform.Refresh - doesn't work.

The property sheet is evaluated only on startup. You have to place your code somewhere else.

For instance, if the label depends on a TextBox.Value, you might place code in TextBox.InteractiveChange(), or perhaps in TextBox.LostFocus(), to change the Label.Caption.

I think you can also put the code into your Label1.Refresh(): This.Caption = iif(...); but better do some experiments.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform