Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ControlSource in Textbox not changing?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
ControlSource in Textbox not changing?
Miscellaneous
Thread ID:
00549916
Message ID:
00549916
Views:
61
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.
Next
Reply
Map
View

Click here to load this message in the networking platform