Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo Box incremental search
Message
De
02/06/2003 18:13:06
 
 
À
02/06/2003 17:31:43
Stephen Hunt
Admit Computer Services Inc.
Farmingdale, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00795427
Message ID:
00795446
Vues:
19
Hi Stephen.

Since VFP 3.0 I have always had problems with the native VFP combo Box. Depending on the speed of the computer the user had, and how fast they would type I sometimes would get different results. Like for instance if I had a combo box based on a states library and on machine 1 I type "NY" the value of the combo box would sometimes go to "NY" sometime go to the first State that started with "Y".

This will work for combo boxes with style = 2-Drop Down List.

Add a propert to the combo called nOldIncSeek and initialize it to 0 in the property sheet. This code in the GotFocus()
THIS.noldincseek = _incseek
_incseek = 1.5
And this code in the LostFocus():
_incseek = THIS.noldincseek
If you are using a version of VFP prior to 7, the your need to look at _dblclick instad of _incseek
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform