[Gambas-user] Listbox.List(x) error

Kari Laine klaine8 at ...626...
Thu Sep 4 21:46:25 CEST 2008


On Thu, Sep 4, 2008 at 10:35 PM, Sevoir <sevoir75 at ...626...> wrote:

> Hi,
>
> Thanks your answer, but problem still
>
> Regards, Sevoir
>
> 2008. 09. 4, csütörtök keltezéssel 21.26-kor Jacky ezt írta:
> > Le Thursday 04 September 2008 20:35:47 Sevoir, vous avez écrit :
> > > Hi All!
> > >
> > > I have a problem.
> > > I want get a Listbox item text value to a label.caption ..
> > > label.caption = ListBox.list(1)
> > > but I have an error message :
> > > Not a function
> > >
> > > What I mistaked?
> > >
> > > Regards, Sevoir
> >
> > Use label.Text is better no ?
> >
> > Jacky
>

So basic problem is how to get specified element from to listbox. I can get
selected element by using the listbox.current.text. I also can get all
listbox elements by using listbox.list.join("|"). Listbox.list returns
array[]-type so it should be possible to index it - but as I am beginner
with Gambas - I don't know. I would also like to know so gurus tell us :-)

Best Regards
Kari



More information about the User mailing list