### ArrayList Example

An example of creating an arraylist with one entry. The entry is a map with multiple keys and values.
'Create a list which holds the requested arraylist. The arraylist is a map
Dim l As List : l.Initialize
'(ArrayList) [DisplayName=John, Starred=False, Id=5, Notes=, TimesContacted=110, LastTimeContacted=1425121693778, Name=John]
'Create the arraylist
l.Add(CreateMap("DisplayName":"Fred", "Starred":False, "Id":5, "Notes":"", "TimesContacted":9, "LastTimeContacted":"1325111623778", "Name":"Fred"))
'Log the list to ensure same as requested arraylist
Log(l)
'Log all map entries Key and Value by getting the first entry of the list
Dim m As Map = l.Get(0)
For i = 0 To m.Size - 1
Log(m.GetKeyAt(i) & " = " & m.GetValueAt(0))
Next
'Get Name - which outputs Fred
Log("Name is " & m.Get("Name"))
'Get TimesContacted - which outputs 9
Log("TimesContacted is " & m.Get("TimesContacted"))

Changed: , Category: Lists, File: T6C215M1566.htm, ID: 1566