Clearing any and all values in a list
Local_Redditor
26 Dec 2022, 19:48Removing all values in a list which contains a bunch of random values. Is there any way to do that?
mrangel
26 Dec 2022, 20:16To remove all the items from a list:
while (ListCount (somelist) > 0) {
list remove (somelist, ListItem (somelist, 0))
}
But in most cases, it will be quicker just to replace the list with an empty one:
For example:
someobject.somelistattribute = NewStringList()