Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rushmore'ing substrings
Message
 
 
To
21/01/2003 16:24:43
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00743958
Message ID:
00743973
Views:
16
>First of all, you should not have an index on alltrim(something), since this will give you a variable expression length. VFP doesn't support this, and it will put an almost arbitrary length (actually based on the first record it finds, I think).

Hilmar,
This is not true for indexes on normal fields. Because VFP has fixed length fields, the index key will be stored as if a PADR(< alltrim(field value) >,< field width >) was executed on it. Alltrim() has detrimental effects when dealing with memo fields because they are variable length. The first record will determine how long the index key expression will be. Everything after that will be padded or truncated as needed.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform