“Continue”后面必须有“Do”、“For”或“While”

更新:2007 年 11 月

Continue 语句必须后跟 Do、For 或 While,具体取决于 Continue 语句是出现在 Do...Loop 循环、For...Next 循环还是 While...End While 循环中。

**错误 ID:**BC30781

更正此错误

  1. 如果 Continue 语句在 Do...Loop 循环中,请将该语句更改为 Continue Do。

  2. 如果 Continue 语句在 For...Next 循环中,请将该语句更改为 Continue For。

  3. 如果 Continue 语句在 While...End While 循环中,请将该语句更改为 Continue While。

  4. 否则,请移除 Continue 语句。

请参见

参考

Continue 语句 (Visual Basic)