[Gambas-user] Listbox

Fabien Bodard gambasfr at ...11...
Thu Jul 8 23:44:07 CEST 2004


Le jeudi 8 Juillet 2004 23:26, Gianni Piccini a écrit :
> A simple newbie question for listboxes: I've found a workaround, but
> probably it can be done in a simpler way. I have 2 listbox, with some items
> in listbox1. I would like to retrieve items 1 of listbox1, like in vb is
> done with
>
> $var = listbox1.list(counter)
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by Black Hat Briefings & Training.
> Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
> digital self defense, top technical experts, no vendor pitches,
> unmatched networking opportunities. Visit www.blackhat.com
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


simply do

var = listbox1[index].text





in fact listbox1[index] return a listboxitem object....

In the opposite to vb, gambas is a true object oriented language.

Fabien




More information about the User mailing list