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

Bruce adamnt42 at gmail.com
Tue Jul 21 16:04:18 CEST 2020



On 21/7/20 10:45 pm, T Lee Davidson wrote:
> On 7/21/20 5:34 AM, Bruce wrote:
>>  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
>>
> 
> It works here with Qt5 and GTK3.
> 
> 

Hmmmm. Neither of us uses QT5 so maybe its a QT4 thing.
b


More information about the User mailing list