1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

VBSを久しぶりに書いて悩んだこと(Continueがない‥)

1
Posted at

数年(十数年?)ぶりにvbsを使ってbatを各案件があった。

orelseが使えないとか色々面倒だが、中でも困ったのがループ処理でcontinueに該当するシンタックスがないこと。

以下のようにすると疑似的に実現できた。

For i=0 To obj.count: Do

   If hogehoge Then  Exit Do ' Continueの代わり

Loop Until 1: Next

Forの中にDo…Untilを書くのがポイント。
全くもって盲点でした。

OrElse、AndAlsoもなんとかできないものか…

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?