I did try to use RemoveItem to remove entries in my string-lists, but I failed at my first attemts.
I probably had gotten the syntax wrong or something.
However, I did re-read the docs and now RemoveItem is working as I want.
But after my first failed attemt, I did try to change my script to use mylist$[selcteditem] = Nil.
This did work fine, as long as the Nilled item was the last one in the list. If it was in the middle of the list, it started to cause problems.
Commands like ListItems or Sort will stop if a Nil is reached.
So my question is, is there a way to rebuild a string list after having an item in the middle Nilled?
- New: Major optimization for table library; InsertItem(), RemoveItem(), and ListItems() will now be
massively faster but only if your code adheres to several rules: the table needs to have been created
using the new CreateList() function and write access must be done exclusively through InsertItem()
and RemoveItem(); if you add or remove table items in any other way, the behaviour is undefined; if
you follow the rules described above, InsertItem(), RemoveItem() and ListItems() will be massively
faster