Indexing Arrays
To refer to different elements of the array, it is necessary only to change the index …
The index value must be an integer constant (1), a variable (myNdex) or expression (myNdex+1)
Form1.Line (100,100)-(500,200),QBColorByName(colorList(0)),B
Form1.Line (100,200)-(500,300),QBColorByName(colorList(1)),B
Form1.Line (100,300)-(500,400),QBColorByName(colorList(2)),B
colorList(0) = “red”
colorList(1) = “white”
colorList(2) = “blue”