Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Labels Caption
Message
De
21/02/2004 10:46:37
 
 
À
20/02/2004 08:38:19
Alex Shevchenko
Cb "westinkombank"
Lutsk, Ukraine
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00879149
Message ID:
00879611
Vues:
17
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform