Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Labels Caption
Message
De
20/02/2004 08:46:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
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:
00879152
Vues:
16
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform