[Gambas-user] Listbox selected?

Fabien Bodard abidoo.too at ...11...
Mon Mar 15 23:05:46 CET 2004


Le Lundi 15 Mars 2004 21:08, pezz a écrit :
> Hi,
>
> In Visual basic you can do this with an extended Listbox:
>
> FOR n = 0 to List1.Listcount-1
> IF List1.Selected(n)=TRUE THEN
> <action>
> ENDIF
> NEXT n
>
> Listbox1.Selected doesn't seem to work in Gambas. How do I process multiple
> selections in an extended listbox?
>
>
> Thanks

hi pezz

First gambas is a better object language than vb . The reason is gambas have a 
good synthaxe.

Dim n as Integer
FOR n = 0 TO ListBox1.Count - 1
IF ListBox1[i].Selected then
<action>

ENDIF
Next


That's all

Fabien
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user





More information about the User mailing list