Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
List Box Incremental Search
Message
 
 
À
12/06/1998 22:17:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00107793
Message ID:
00107927
Vues:
26
Jamie,

Ths listbox has an IncrementalSearch property is it set to .T.? If you do the seek yourself you need SET NEAR ON and SET EXACT OFF.

>I'm having a problem figuring out how incremental searches work. I have a form with a text box to key in a last name. The form also has a list box with the rowsource type being fields from a table called CLIENTS and the rowsource being clients.lastname, firstname.
>
>As the user keys in the name, I would like the list box to incrementally reflect the entered text.
>
>I have the following code under interactivechange of the textbox:
>
> xname = thisform.txtlastname.value
> seek upper(xname)
> thisform.list1.value = xname
> thisform.refresh
>
>The list will "jump" to the correct item once an entire match is made but not "incrementally". In other words, you have to type Flick before the item with whose last name is Flick is selected. Make any sense?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform