Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Toolbar, Skip and TextBox
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00503387
Message ID:
00503396
Vues:
24
Hi John.

>> I've got a toolbar of which one piece of fuctionallity is to move to the next record, works fine except (here it comes) if the user edits text within a textbox, then press Next on toolbar without moving out of the textbox, two things happen,
1) the record in not updated
2) the information in the textbox is carried forward and displayed against the next record. <<

The ControlSource of a bound control does not get updated until its valid fires. Since toolbar buttons do not get focus, the valid of the active control on the frm never fires. In order to force this to happen, you could put a little code in the your tool bar button:
IF TYPE( '_Screen.ActiveForm.ActiveControl.Name' ) = 'C'
   _Screen.ActiveForm.ACtiveControl.SetFocus()
ENDIF
As far as the text box not displaying the info in the next record, are you refreshing the form after moving the record pointer?

Marcia
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform