Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox control bound to a variable
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Textbox control bound to a variable
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01111211
Message ID:
01111211
Views:
59
Maybe simple, maybe not...

I have a slight thorn in my side on this.

I have a textbox control with a controlSource pointing to a variable... Typically no problem. However, it only gets updated when you tab or enter out of the field... Try this for example

Create a form. Put a label and a textbox control on it. In the INIT of the FORM do the following


This.text1.ControlSource = "Thisform.label1.Caption"

run the form. I would think that as you type in the textbox, that it would be updating the variable at the same time. If you have a textbox control set to a "table.field", the field gets updated immediately. Start typing in the textbox control, only when you hit tab or enter does it update the labels caption (which the caption would be equivalent to a variable anyhow).

Any ideas???

Thanks
Next
Reply
Map
View

Click here to load this message in the networking platform