| Visual Basic Scripting Edition | 語言參考 |
需要 'While'、'Until' 或語句結束創(chuàng)建了一個Do循環(huán),但是未包含相關的關鍵詞While 或 Until。一個Do 循環(huán)的測試條件需要在測試條件語句中使用一個While或Until 關鍵詞。下面演示了 一個Do 循環(huán)的正確結構。 Do [{While | Until} condition] [statements] [Exit Do] [statements]Loop
Or, you can use this syntax: Do
[statements]
[Exit Do]
[statements]
Loop [{While | Until} condition]
要糾正該錯誤 - 確保Do循環(huán)包含了所有必須的部分。
- 使用關鍵字While 或 Until來結束Do循環(huán)。loop with either the While or Until keywords.
請參閱代碼中循環(huán) | Do...Loop 語句 | For...Next 語句 | For...Next 語句 | While...Wend 語句 | Exit 語句 返回首頁
|