Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Breaking from the loop
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01572547
Message ID:
01572643
Views:
54
This message has been marked as a message which has helped to the initial question of the thread.
Likes (1)
>I am thinking of the best way to convert the following VFP code
>So, the problem here is that we have 10 b_pop1_ columns and 15 b_pop2 columns. So, I somehow need to run loop for 10 and for 15.


Why do you want to put it in one loop? As far as I can see (and it was painful to look at that code, you owe me Naomi, you owe me big time :)) those were independent values, so I would write two methods with only one loop to do the assignments (and those methods should have a descriptive name, with the names you are currently using nobody can understand what the heck they are pop1 and pop2), this way if tomorrow for some reason there are 11 and 14 columns and you are not there any longer the next person has an easier job maintaining the code. (also I think in the foxpro code you have another set (criteria? I forgot and I already deleted the quoted text) that I would put in yet another method but is missing in your code, I think)

Just my 2c
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform