Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot make autocomplete work
Message
From
10/09/2008 16:02:35
 
 
To
10/09/2008 14:47:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
MySQL
Miscellaneous
Thread ID:
01346375
Message ID:
01346465
Views:
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

Yes, I did create the index also, after checking the correct table structure of the AutoComp table. I still don't know what happend, but I created now a form with a grid to do it differently.
Christian Isberner
Software Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform