Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement