Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot make autocomplete work
Message
De
10/09/2008 14:47:01
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
MySQL
Divers
Thread ID:
01346375
Message ID:
01346442
Vues:
12
>Hello,
>
>I try to use autocomplete in a textbox but I am missing something?
>
>First I create the table MyAutoComp.DBF with the Source and Data fields according to the structure of AutoComp.DBF, fill the data values and set use that table as AutoCompTable. I replaced all "Source" with "STREETS" in the Automplete table as well.
>
>
>THIS.txt.AutocompSource = "STREETS"
>THIS.txt.AutocompTable = "MyAutoComp.DBF"
>THIS.txt.AutoComplete = 1
>
>but I don't see it working, it does not show any values that I have in the table.
>
>Any ideas what I'm doing wrong?

Did you create the index too? By the way, there is a bug with the index expression, if your entries are longer than 30 chars, they will repeat in the table, change the index expression from:

UPPER(source+LEFT(data,30))+PADL(count,8)

to maybe:

UPPER(source+LEFT(data,200))+PADL(count,8)

Carlos
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform