Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace command throws me to eof
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01262987
Message ID:
01262992
Views:
13
>>For some reason the replace code below seems to send my file pointer to the last rec.
>>I was at top (got INFOBASE open in browse window as I go thru debug)
>>I scrutinised every command and no movement.
>>As soon as the replace happened I saw the browse shoot to eof()/bottom
>>I've reindexed the table (which always has a CDX open anyway - no IDX)
>>
>>
>>Select INFOBASE
>>Replace DAYS_OP with Thisform.cOpDays
>>
>>
>>Anyone any ideas what the kinell's going on here? I'm not sure this always happens as some have been successful.
>>
>>'ppreciate it
>>
>>Terry
>
>Did you have index based on DAYS_OP and that order is current for the table?

Hi BB

Thanks for getting back.

There is quites a complex index in operation:

rte_no + rte_let + directn + var_code + days_op + j_start

Note that Days_op is part of it. However the value of Days_Op has not changed so I don't see how this would change the order.

Having said that you've just prompted me to consider what would happen if I did!

Do you still think this might make a difference?
- 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
Next
Reply
Map
View

Click here to load this message in the networking platform