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 表達式