Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox control bound to a variable
Message
From
07/04/2006 02:06:27
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01111211
Message ID:
01111288
Views:
9
>The Controlsource of a textbox gets updated after its Valid fires. It's true for "table.field" also.
>

before valid

>>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).
>>
Previous
Reply
Map
View

Click here to load this message in the networking platform