Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
In VFP9 How do I use the autocomplete textbox
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01048709
Message ID:
01048725
Views:
19
Hi, Mike.
>Any code samples... on how to use this feature? I found the help file confusing...

I think there is a sample in the Solution Samples (check them from the Task Pane).

In any case, you may just start by dropping a textbox in a form and turning Autocomplete=.t.

Then run the form and you'll see that it works.

Some of the things you can tweak on a control by control basis are:
- Where the AutoComplete.dbf is (this table stores the value you go entering)
- What's the name to wich these values get associated (by default, it is the control name)
- The sorting scheme, and much more things

Play with it. It is pretty simple, although I recommend you to think very well where to use it. It does not replace a combobox or any other structural control where entries are validated. Autocomplete is more for URL or email kind of things, not for picking values for a regular database app.

Regards,
Previous
Reply
Map
View

Click here to load this message in the networking platform