Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP is using wrong table
Message
De
20/09/2000 09:34:08
 
 
À
20/09/2000 06:14:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00418411
Message ID:
00418476
Vues:
31
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform