| www.schnapple.com |
|
|
string s;And here's the same code in VB.NET
for (int i = 0; i < 10; i++)
{
s += "x";
Console.WriteLine(s);
}
Dim i As IntegerSo as you can see, the two languages are syntactically very similar (especially in this dead-simple example).
Dim s As String
For i = 1 To 10
s += "x"
Console.WriteLine(s)
Next