» Home » VB Fibre
Site
News
Files

Visual Basic
Strings
Math
General
Properties
Memory
Methods

Search
Testing

Inline ASM-VB
Strings
Math
General
Memory

Search
Using inline ASM
Submit!

"Next I" vs. "Next"

For once and for all here's the answer for many discussions :) No real difference between Next or Next (variable)... So it doesn't matter if you specify a variable. Although I would prefer it personally, so I can see which For is updated, in loops that are larger than one page (eg: For tile engines)

Code:
For I = 1 To lngIterations '//Run test 1 TestOne Next I For I = 1 To lngIterations '//Run test 2 TestTwo Next

Next I % faster than Next Next I (sec) Next (sec)
-1,3% 0,754768 0,764786
0,4% 0,750284 0,747566
-5,6% 0,750248 0,794710
1,1% 0,766722 0,758065
-0,1% 0,751146 0,751652


User contributed notes:

Add user-note
Author:
E-mail (optional):
Anti spam, please enter 'ok' without quotes:
Comment: