Array: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 26: | Line 26: | ||
[[dim|Dim]] | [[dim|Dim]] | ||
[[Category:Language Reference]] | [[Category:Language Reference]] | ||
[[Category:Variable Handling]] | [[Category:Variable Handling]] |
Revision as of 08:44, 28 November 2012
Array(expressionlist)
Description
Array creates an array dynamically. The required parameter, expressionlist, is a comma-delimited list of valid expressions. The resulting array has a length equal to the number of elements in expressionlist. Arrays created with Array have a lower bound of 0.
Example
Rem Array Example 'Array creates an array dynamically Dim MyArray, Message 'Create an array with 2 string elements MyArray = Array("Hello", "World!") 'Access the array and concatenate elements Print MyArray(0) & " " & MyArray(1)
Output
Hello World!