• Saves Valuable Time
  • Trusted Accuracy for 12 Years
  • 15-Day Money-Back Guarantee

VB Equivalent to C++ Loops

For Loop

C++ VB.NET
for (int i = 1; i <= 9; i++)
{
}
For i As Integer = 1 To 9
Next i

For Each Loop

C++ VB.NET
for (std::string s : StringList)
{
}
For Each s As String In StringList
Next s

While Loop

C++ VB.NET
while (condition)
{
}
Do While condition
Loop

or:

While condition
End While

Do While Loop

C++ VB.NET
do
{
} while (condition)
Do
Loop While condition


Use C++ to VB Converter to convert from C++ to VB.NET.     

Additional resource: VB.NET and C++ Equivalents


Copyright © 1997 – 2017 Tangible Software Solutions Inc.