Looping
- 30 Jan 2024
- 印刷する
- PDF
Looping
- 更新日 30 Jan 2024
- 印刷する
- PDF
The content is currently unavailable in Ja - 日本語. You are viewing the default English version.
記事の要約
この要約は役に立ちましたか?
ご意見ありがとうございます
Looping through arrays of values can be done with the For....Next statement. The syntax is:
For varname1 = varname2 to varname3
Variable varname1 takes on values from the starting value of “varname2” to the ending value of “varname3” by increments of 1. Example code is:
Dim x as integer
Dim NewValue as single
‘Sum Input tags 5 to 20. Put the result in Output tag 4.
For x=5 to 20
NewValue = NewValue + GD(x)
Next x
Tag(4, NewValue)
この記事は役に立ちましたか?