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

Ron_1st ronstk at ...239...
Fri Sep 5 16:51:29 CEST 2008


On Thursday 04 September 2008, Kari Laine wrote:
> 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

You explain yourself the correctway already :)

>  Listbox.list returns array[]-type

How do you access array elements?
What about myllistboxtextarray[1] ?



Best regards
Ron_1st

-- 
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 




More information about the User mailing list