Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TableUpdate() Problem
Message
From
16/10/1998 08:26:20
 
 
To
16/10/1998 07:46:44
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00147398
Message ID:
00147432
Views:
32
>Hello Gilles,
>
>I think that what is really happening is that the textbox in the form never looses focus.
>
>ToolBars in VFP don't get focus (every contro,can get the focus but ToolBars just don't get it)
>So your textbox doesn't looses the focus when you click in a toolbar button. Therefore the controlsource of the textbox isn't updated.
>When you issue tableupdate(), the table field still has the old value. The table field will only have the new value when you get out of the textbox control.
>
>You can overide this by putting code in the interactivechange event of the textbox to do the replace of the fields with this.value
>Now the table field is replaced as soon as you type values in the textbox. When you click the button in the toolbar the tableupdate(89 will function correctly.

Thanks for the tip I'll try... I've found another solution working : I put _Screen.ActiveForm.ActiveControl.SetFocus() in the button and it seems to work !!

Gilles
Gilles Azria
-------------------------------------------------
http://www.profiledatabase.com
http://www.photoprofile.ch
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform