[Gambas-user] TreeView always returns last Item

Dimitris Anogiatis dosida at ...626...
Thu Aug 13 04:20:49 CEST 2009


Hey JY,

Try this line perhaps it'll work.

   trv_What.Current.Text

it works on my gb.2.14 on my Debian Lenny

Hope it helps

Regards
Dimitris

On Wed, Aug 12, 2009 at 7:51 PM, Jean-Yves F. Barbier <12ukwn at ...626...>wrote:

> gb 2.15.2 debian sid package
> ============================
> Hi list,
>
> I've got a strange TreeView behaviour: my application reads parms from
> a database and order them into a TreeView.
>
> I use a simple line to print selected item's information into the embedded
> console: PRINT trv_What.Item.Key & " --- " & trv_What.Item.Text,
> but no matter which item I click, the result' still the same: it is
> the information from the last item inserted in this TreeView!??
>
> Did I missed something?
>
> JY
> --
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> 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