Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox - SQL
Message
 
 
À
27/04/2001 14:49:17
Chuck Tripi
University of Wisconsin - Milwaukee
Milwaukee, Wisconsin, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00497353
Message ID:
00500983
Vues:
43
>I am not trying to make you fix all my coding problems, but this one, something isn't right.
>
>In the 'Find' button, ClickEvent, there is only one line and it works 'prefectly':
>ThisForm.MyFind()
>
>In the textboxes, KeyPressEvent, the following is in there and it does not work right (lists all at first, but then after first try, it seems "OK"?):
>LPARAMETERS nKeyCode, nShiftAltCtrl
>IF nKeyCode=13
> ThisForm.MyFind()
> NoDefault
>ENDIF

>
>Chuck

Chuck,

I think is better to call thisform.MyFind from TextBox.LostFocus event. Delete it from KeyPress, put in LostFocus thisform.MyFind(). This will work better.

>
>>What exacly doesn't work? Could you post the offending code, please?
>
>
>>>>>>if nKeyCode=13
>>>>>>   thisform.MyFind()
>>>>>>   nodefault
>>>>>>endif
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform