[Gambas-user] ListView.Clear() doesn't seem to clear evertyhing

Bruce adamnt42 at gmail.com
Tue Jul 21 11:34:09 CEST 2020


 From a colleague:
------------------------------------
I have a listview on a form that I want to clear entirely and then 
rebuild from a new set of similar things, so I try:
	lvwX.Clear
	For each item in newlist
		lvwX.Add(item,item)
	Next
but I keep getting an error about ~"Key already exists". So I try
	lvwX.Clear
	lvw.Keys.Clear
	For each item in newlist
		lvwX.Add(item,item)
	Next
and still get the sam error.
Is this correct or are we using a bad version of ListView?
------------------------------------

I have confirmed it but I am sure we haven't a local version of 
ListView, so..

Any comments?
tia
bruce


More information about the User mailing list