2009-07-02から1日間の記事一覧

検証・VBのFor文の終値が変数の場合

以下のようにコードを記述 Dim iEnd As Integer Dim iResult As Integer iEnd = 5 iResult = 0 For i = 1 To iEnd iEnd = 0 iResult = iResult + 1 Next MsgBox "ループ回数は" & Str(iResult), vbInformation, "結果発表" 実行結果 どうやら終値に変数を使…