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:
01171216
Views:
6
>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?

WAG:

The IDX index wasn't open when country "115" recs were added? One trouble with IDXs - you have to explicitly tell VFP to open them with the table - a problem you don't get with CDXs.

even WAG:
Does the following make any difference:

lcSeekKey = m.country+m.code
seek( lcSeekKey,"table","IDX")
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Reply
Map
View

Click here to load this message in the networking platform