







Top Tips:

  • Search for a specific skill
Access data in an array

An array lets you store more than one piece of data into the same variable as an ordered list.

Data in an array can be accessed using an index. This is a number which defines the position in the list, which starts counting from 0

This example displays the first string in an array called names

SET names TO ["Percy", "James", "Gordon"] SEND names[0] TO DISPLAY
Dim names As String() names = {"Percy", "James", "Gordon"} MsgBox(names(0))
names = ["Percy", "James", "Gordon"] print(names[0])
array names[3] names[0] = "Percy" names[1] = "James" names[2] = "Gordon" print(names[0])
names[3] set names[0] = "Percy" set names[1] = "James" set names[2] = "Gordon" output names[0]
string[] names = {"Percy", "James", "Gordon"}; Console.WriteLine(names[0]);