On jeudi 04 septembre 2008, Sevoir wrote:
> Thx this working.
>
>
> Regards, Norbert
>
> 2008. 09. 4, csütörtök keltezéssel 21.44-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?
> >
> >  label.caption = ListBox.list[1]
> >
> > Jacky
> >

The syntax in Gambas is different from the vb syntax:

Label.Caption = ListBox[1]

If you do Label.Caption = ListBox.List[1], you get the same result, because
you actually get the second element of what returns ListBox.List, which is an 
array of all listbox elements. If the listbox has 10000 items, you are 
killing a fly with a hammer then.

Regards,

-- 
Benoit Minisini

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to