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

T Lee Davidson t.lee.davidson at gmail.com
Tue Jul 21 15:15:30 CEST 2020


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.


-- 
Lee

[System]
Gambas=3.15
OperatingSystem=Linux
Kernel=4.12.14-lp151.28.52-default
Architecture=x86_64
Distribution=openSUSE Leap 15.1
Desktop=KDE5
Theme=breeze
Language=en_US.UTF-8
Memory=16030M

[Libraries]
Cairo=/usr/lib64/libcairo.so.2.11600.0
Curl=/usr/lib64/libcurl.so.4.5.0
DBus=/usr/lib64/libdbus-1.so.3.19.4
GStreamer=/usr/lib64/libgstreamer-1.0.so.0.1205.0
GTK+2=/usr/lib64/libgtk-x11-2.0.so.0.2400.32
GTK+3=/usr/lib64/libgtk-3.so.0.2200.30
OpenGL=/usr/lib64/libGL.so.1.0.0
Poppler=/usr/lib64/libpoppler.so.73.0.0
QT4=/usr/lib64/libQtCore.so.4.8.7
QT5=/usr/lib64/libQt5Core.so.5.9.7
SDL=/usr/lib64/libSDL-1.2.so.0.11.4
SQLite=/usr/lib64/libsqlite3.so.0.8.6


More information about the User mailing list