“Continue” (to next iteration) on VBScript

后端 未结 8 862
陌清茗
陌清茗 2021-02-03 17:43

A colleague and I were trying to figure out a way of doing the equivalent of a \"continue\" statement within a VBScript \"For/Next\" loop.

Everywhere we looked we found

8条回答
  •  轮回少年
    2021-02-03 18:01

    One option would be to put all the code in the loop inside a Sub and then just return from that Sub when you want to "continue".

    Not perfect, but I think it would be less confusing that the extra loop.

提交回复
热议问题