Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP is using wrong table
Message
From
20/09/2000 09:34:08
 
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00418411
Message ID:
00418476
Views:
32
>I have a procedure which displays records from a table depending if they match certain requirements set by the user (such date from, date to etc). When a record matches the requirements it is copied to a temporary table. This works most of the time, but, on some occasions VFP is finding itself on the wrong table and when I suspend and do a "? alias()" the name of the temporary table is printed, yet I haven't selected the temp table.
> The source below is one example:
>
>select fixtures
>go top
>do while .not. eof()
> mpos = recno()
>
>* determines whether the record should be copied to the temp table
>
> select fixtures
> go top
> go mpos
> skip
>enddo eof()
>
>An error occured on the "go mpos" saying "record out of range". I suspended and done a "? alias()" and the temp table is selected. AHHHH!, How?
>
>Many thanks to anyone who tries to help in advance.

Sounds like the value of mpos changing.
Insanity: Doing the same thing over and over and expecting different results.
Previous
Reply
Map
View

Click here to load this message in the networking platform