Cindy
Sat Aug 20 11:48:24 CDT 2005
Hi Cowboy,
"cStyleCode and is c(6) plus cGarment c(10). "
Whether or not you do any trimming, Fox will always pad the index expression
to the full width because indexes are fixed width just like fields. If you
index on "Alltrim(cStyleCode) + cGarment" then Fox will effectively use
'PadR(Alltrim(cStyleCode) + cGarment, 16)" as the index expression.
Set Exact, Set Ansi, and Set Near determine how Fox will match index
expressions, for example seeking "abc" against "abcdef". Check out these
topics in Help.
Trimming can give unpredictable results making "abcd " + "efgh " look the
same as "abcde " + "fgh ". It's better to stay away from trimming in index
expressions.
--
Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
cindy_winegarden@msn.com www.cindywinegarden.com
Blog:
http://spaces.msn.com/members/cindywinegarden
"Cowboy" <Cowboy@discussions.microsoft.com> wrote in message
news:A3BD78D8-29CE-49E9-90C8-D427C75C9D4F@microsoft.com...
>I have tables with compound indexes. Performing a seek seems to require
>the
> padding of the fields (at least the first field of the index). The index
> in
> not based on the padding. Am I missing something? Do I need to pad the
> variables I am seeking?