Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setfocus Problem
Message
De
30/11/1999 10:20:07
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00296829
Message ID:
00296848
Vues:
23
>Hello gang,
>I have a simple form, with a command button and a text box, what I am trying to do is:, scan a value into the text box via a barcode reader, execute a routine ( at present from the LostFocus event of the text box ), which updates a table, clears the text box and sets the focus back to the text box, the problem I am having is setting the focus back to the text box, I've experimented with the placement of the code all to no avail, what I've got so far is this
>
>Textbox.LostFocus
>
>ThisForm.UpdateTable()
>This.SetFocus()
>
>The focus always goes to the next object ( the command button ), I've tried putting text box setfocus code in the ThisForm.UpdateTable() method all to no avail, any ideas
>
>Regards
>
>Pete Kane

Have you tried including a NODEFAULT before the This.SetFocus()?

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform