Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ControlSource in Textbox not changing?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
ControlSource in Textbox not changing?
Divers
Thread ID:
00549916
Message ID:
00549916
Vues:
55
I run a Form. In the Form Init I calculate two values, A and B.

I have a Textbox on the Form with ControlSource = A.

That value appears in the Textbox on the Form when the Form appears.

I press Command button 2 which has two commands -
THISFORM.Textbox.ControlSource = B
THISFORM.Refresh

Now I am supposed to see value B in the Textbox, but I don't. I still see value A.

I also have Command button 1 which has two commands -
THISFORM.Textbox.ControlSource = A
THISFORM.Refresh

This way I can bounce back and forth between the textbox showing me the values A or B depending upon which command button I press. Any idea why Command button 2 does not show me value B? TIA!
Steve Kramer
Kramer & Kramer Design
"Home of Go Cartoons"
Web Site: www.stephenkramer.com
Would you believe Far Side Lite?
More than 270 original cartoons.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform