Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List Box Incremental Search
Message
 
 
To
12/06/1998 22:17:46
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00107793
Message ID:
00107927
Views:
25
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
Previous
Reply
Map
View

Click here to load this message in the networking platform