[Gambas-user] ListBox selection

Demosthenes Koptsis demosthenesk at ...626...
Wed Jun 15 21:16:48 CEST 2011


On Wed, 2011-06-15 at 20:25 +0200, tobias wrote:

> DIM i AS Integer
> 
>    i = 0
>    WHILE i < ListBox1.Count
>      'is it selected?
>      IF ListBox1[i].Selected THEN
>        'remove and...
>        ListBox1.Remove(i)
>        DEC i
>      ENDIF
>      INC i
>    WEND
> 
> or did i still not get what you wanted?
> 

yes it works fine, thanks, it is quite good trick!


-- 
Regards,
Demosthenes Koptsis.





More information about the User mailing list