### List Fixed Size

If a list is created from an Array it will have a fixed size and is readonly.
This list wraps an array.
Example
Dim FixedList As List = Array("Item1", "Item2", "Item3")
For Each s In FixedList
Log(s)
Next
'This is not possible
Try
FixedList.Add("Item4")
Catch
'(UnsupportedOperationException) java.lang.UnsupportedOperationException
Log(LastException)
End Try
Dim FlexList As List
FlexList.Initialize
FlexList.AddAll(Array("Item1", "Item2", "Item3"))
FlexList.Add("Item4")
For Each s In FlexList
Log(s)
Next
Resulting in:
Item1
Item2
Item3
(UnsupportedOperationException) java.lang.UnsupportedOperationException
Item1
Item2
Item3
Item4

Changed: , Category: Lists, File: T6C215M1571.htm, ID: 1571