Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Autocomplete Limitation
Message
From
22/11/2005 18:14:59
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01070833
Message ID:
01071356
Views:
18
>I have found that autocomplete by default is only working correctly (in my mind at least) if the width of the data is not greater than 30 characters. I tried using autocomplete on a textbox used in getting a folder name. If the folder name was longer than 30 characters, each time the folder was picked a new entry was added to the autocomp.dbf table . I have noticed that the index created for the autocomp.dbf is UPPER(source+LEFT(data,30))+PADL(count,8). If I change the 30 to let's say 40 then autocomplete works correctly for data up to and including 40 characters. Does anyone know of the ramifications of changing the index on the autocomp table or if I am missing something here?

Since the autocomplete.data is a c(254) field, obviously it can store longer values. The choice of 30 for the index was probably some guesstimate of a good default value - but then you can have your own table with a shorter field, and as long as the index conforms to the same rule of composition, why not create your own autocomplete table(s) with custom index?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform