Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
In VFP9 How do I use the autocomplete textbox
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01048709
Message ID:
01048725
Vues:
18
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,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform