Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FOR ... ENDFOR loop
Message
 
 
À
04/09/2001 13:30:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00552168
Message ID:
00552173
Vues:
15
This message has been marked as the solution to the initial question of the thread.
>Hi all,
> I have a group of fields, five in all that I need to go through sequentially. I have a for loop that that I thought would do this. They are named note1 through note5. I am trying to use something along the lines of:
>
 local myFieldVal
>FOR i = 1 to 5
     myFieldVal=evaluate("MyTable."+"note"+transform(m.i))
>    DO CASE
>        CASE myFieldVal="Something"
>            myCode
>    ENDCASE
>ENDFOR
>
>What is wrong with this picture?
>Thanks

See the changes in the code. What exactly you're doing here? Can you give more info, please?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform