From: | David McMinn |
Date: | 6 Sep 2000 at 15:54:56 |
Subject: | Re: ListViews |
Hi Neil
> It's when I want to add something to guilist() and update the listview that is
> all goes wrong :) What is the correct way to do this? I obviously need to
> increase the size of the linked list, so do I just do
Nononononononono. The whole point of lists is that you do not need to increase
the size (unless of you course you *really* mean to increase the size of the
list), you just add and remove items from the list.
i.e. to add another thing to the list you would do:
If AddItem(guilist()) Then guilist()\entry = <whatever>
> Dim List guilist.lview(count+1) : ResetList guilist()
If you reeeeeeeeeeeally need to do this then you need to copy all your data out
of your list before you re-Dim it and then copy it back, otherwise the list
will be empty, or full or crap.
> or is there a better way? If I do it like this, then add all the data into
> the list again, including the new piece of data. Then, I do
Dunno about better, but the correct way is this:
> GTChangeList 0,1
; (Add|remove|kill|burn) items, do whatever you want to the list here
> GTChangeList 0,1,guilist()
And now it should show the new list data.
> What do I do?
Do it properly. Even the manual, BUMs, and online help all explained
GTChangeList I think.
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie