[Gambas-user] Missing things in ListBox and ListView

Benoît Minisini g4mba5 at gmail.com
Wed May 16 13:44:43 CEST 2018


Le 16/05/2018 à 08:42, Rolf-Werner Eilert a écrit :
> Good morning!
> 
> Just wanted to write some values from ListBox and ListView into strings 
> with TABs.
> 
> First idea was to do it with a FOR...NEXT loop, but I missed .Max so the 
> only way to count would be up to ".Count - 1" (the classic).
> 
> Then I thought .Join might be more elegant, but there is no .Join for 
> ListBox and ListView.
> 
> So I found that .Max and .Join aren't there, is there a reason for that?
> 
> My Gambas is 3.9.2, and currently I do not have a chance to update.
> 
> Regards
> Rolf
> 

The ListBox has a List property that returns its contents as an array of 
strings.

As for the ListView, you have to browse all elements by hand with the 
Move*() methods.

Regards,

-- 
Benoît Minisini


More information about the User mailing list