Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using a FOR LOOP with reccount()
Message
De
09/09/1998 13:57:18
 
 
À
09/09/1998 13:07:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00134627
Message ID:
00134661
Vues:
10
>The reccount() is not working.
>Here is my code:
>
>i=1
>for i=1 to reccount()
> replace myfld with i
> if !eof()
> skip
> endif
>endfor
>
>What I want to do is change the value of myfld in all the records in the table. This FOR LOOP will not do that.
>any ideas?

I´d say that you are missing either a GOTO TOP before the loop, or a GOTO (I) before the REPLACE. (If you opt for the latter solution, you can remove the IF construct.)

HTH!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform