This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:arrays [2016/11/07 06:56] admin |
en:arrays [2020/04/21 18:26] admin [Passing Arrays of Data to Builtin Functions and Statements] |
||
---|---|---|---|
Line 27: | Line 27: | ||
< | < | ||
a = {1,2,3,4} | a = {1,2,3,4} | ||
- | dim b = a | + | dim b = a[] |
</ | </ | ||
Line 45: | Line 45: | ||
==== Passing Arrays of Data to Builtin Functions and Statements ==== | ==== Passing Arrays of Data to Builtin Functions and Statements ==== | ||
- | When passing an array of data, like to the [[sound|sound]] statement, you must include an empty set of brackets [] after the variable name. This was added to reduce the confusion between a regular variable and a variable containing an array of values. | + | When passing an array of data, like to the [[sound|sound]] statement, you may include an empty set of brackets [] after the variable name. This was added to reduce the confusion between a regular variable and a variable containing an array of values. |
==== History ==== | ==== History ==== |