Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP3 Index Problem
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01171211
Message ID:
01171223
Views:
6
Looks like VFP may think that country 115 is a number and is adding the first digit from the code to that number so that;

m.country + m.code = 118 (115 + 3)

Try this and see if it helps;

seek(TRANSFORM(m.country) + TRANSFORM(m.code),"table","IDX")




>We have an old app that is going bonkers. We have a lookup table that has an index using two fields. country+code
>
>Every country is fine when doing a seek(m.country+m.code,"table","IDX")
>
>One country, "115" fails the seek when the m.code = [3EZ] or [36Y] or [1EZ]
>
>If the m.code is [LA1] it passes the seek().
>
>The table has been reindexed several times. The values being passed to the seek() function are the right type and length. The records exist in the lookup table AND the seek() works every time when stepping through the debugger.
>
>Can anyone think of a reason the seek would fail at run time but not at the command window or in the debugger?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform