Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TableUpdate() Problem
Message
De
16/10/1998 08:26:20
 
 
À
16/10/1998 07:46:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00147398
Message ID:
00147432
Vues:
35
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform