SetListItems(t, n)
You have to pass the table to convert in the t
argument and the number of
list entries in n
. Note that the value you pass in n
must match the number
of list entries currently in the table, i.e. it must match the return value
of ListItems().
Note that there are some restrictions when using optimized lists. See CreateList for details.
t = {} For Local k = 1 To 10000 Do t[k-1] = k SetListItems(t, 10000) Print(ListItems(t))The code above creates a normal Hollywood table, fills it with 10000 items, and then converts it to an optimized list.