views:

58

answers:

1

Is it possible to define two variables in a vb2005 For loop in a similar way that jscript does it?

the javascript example is

for(i=0,l=0;i<20;i++){}

+1  A: 

No there is no equivalent syntax in VB.Net. The for loop declaration can only contain a single variable.

For Loop Syntax: http://msdn.microsoft.com/en-us/library/5z06z1kb.aspx

JaredPar