Jim
Jim

Reputation: 601

Defining more than one variable in a vb2005 for loop

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++){}

Upvotes: 1

Views: 144

Answers (1)

JaredPar
JaredPar

Reputation: 754615

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

Upvotes: 1

Related Questions