CreateArrayList


arraylist = CreateArrayList({copyList})

This function returns an object reference that points to a array list. An existing array list may be copied by placing it as the optional parameter copyList.

An array list is an array that can grow or shrink at any time. Any element may be accessed randomly like regular arrays.


arraylist = CreateArrayList()

name$ = "Fred"
age = 98
sex$ = "m"

put arraylist, name$

Fred


put arraylist, age

Fred

98


put arraylist, sex$

Fred

98

m


age = 58
put arraylist, age, 1

Fred

58

m


get arraylist, a, 1

a = 58

remove arraylist, b, 1

b = 58


Fred

m




Data Structures







Become a Patron