Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Labels Caption
Message
From
21/02/2004 10:46:37
 
 
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:
00879611
Views:
15
It is not good practice to change one object from another object at the same level directly. What happens is that your objects become "tightly bound" to one another. It is better to allow a mitigator object such as the parent object to observe and react. As an example see the following code.

Textbox::InteractiveChange
this.parent.CheckMyNewValue(this)
.
.
.
return

Form::CheckMyNewValue
lparameter toObject
do case
case lower(toObject.name) ='pble'
this.Lavel1.Caption =iif(this.PbLE.Value=1,"text 1","text 2")
case ....
....
endcase

Glenn


>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform