which is better (both are large), this:
or thisCode:For x= 1 To 2
For y=1 To 30
blah
Next
Next
they both do the process 60 times but is one way better than the other?Code:For y=1 to 30
For x=1 to 2
blah
Next
Next
thanks
michael
Printable View
which is better (both are large), this:
or thisCode:For x= 1 To 2
For y=1 To 30
blah
Next
Next
they both do the process 60 times but is one way better than the other?Code:For y=1 to 30
For x=1 to 2
blah
Next
Next
thanks
michael
They should be the same. You could try benchmarking to find out, but the program isn't having to do anything different, and you aren't stacking anything or consuming extra memory.
OK, I figured that was the case. I was just thinking that 2 for loops for 30 was better than 30 for loops for 2 :)
thanks
michael