1、If语句:

If 表达式 Then

语句

ElseIf 表达式 Then

语句

Else

语句

End If

2、Select语句:

Select Case 表达式

Case 常量

语句

...

Case Else

语句

End Select

3、循环语句:

For 变量名=初始值 To 结束值 Step 步长

语句

Next


For Each 变量名 In 集合

语句

Next

注:集合中的元素不能为自定义Type,可以为自定义Class


While 表达式

语句

Wend


Do While|Until 表达式

语句

Loop


Do

语句

Loop While|Until 表达式