Arrays
- 30 Jan 2024
- 印刷する
- PDF
Arrays
- 更新日 30 Jan 2024
- 印刷する
- PDF
The content is currently unavailable in Ja - 日本語. You are viewing the default English version.
記事の要約
この要約は役に立ちましたか?
ご意見ありがとうございます
Variable names that are used for doing calculations must be defined. Multiple values can be defined by using arrays. This is true for both the Dim and Static statements. This is similar to defining single variables:
Dim NewValue(100) as Single
The variable name is “NewValue” and it has 100 elements.
Example code:
Dim NewValue(100) as single
‘Sum Input tags 3, 5 and 9. Put the result in an intermediate array (position 18) and place in Output tag 4
NewValue(18) = GD(3) + GD(4) + GD(9)
Tag(4, NewValue(18))
この記事は役に立ちましたか?