coding performance question...?

  • Thread starter Thread starter Paul M
  • Start date Start date
* "Paul M said:
which is better coding performance wise?

----------------------------
for x as integer = 1 to 10000
'.......
next
----------------------------
or
----------------------------
Dim x as integer
for x = 1 to 100000
........
next
----------------------------

The same.
 
Paul M said:
which is better coding performance wise?

----------------------------
for x as integer = 1 to 10000
'.......
next
----------------------------
or
----------------------------
Dim x as integer
for x = 1 to 100000
........
next
----------------------------

I still prefer the "old" (2nd) version because "go to definition" in the
context menu when you click on the word "Integer" does not work (yet). Well,
rarely used with Integer, but with other data types.


--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
 
"Armin > I still prefer the "old" (2nd) version because "go to definition"
in the
context menu when you click on the word "Integer" does not work (yet). Well,
rarely used with Integer, but with other data types.
I use the second "old" when I needs to exit a for loop and want to have the
latest index which cannot with the first.

For the rest I use the first one, just because it is less typing and in my
vision more compact to see.

Cor
 
* "Cor Ligthert said:
"Armin > I still prefer the "old" (2nd) version because "go to definition"
in the
I use the second "old" when I needs to exit a for loop and want to have the
latest index which cannot with the first.

That's a good point!
 
Back
Top