Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FOR ... ENDFOR loop
Message
 
 
To
04/09/2001 13:30:04
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00552168
Message ID:
00552173
Views:
16
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform