[Gambas-user] treeview multiple selection

Jean-Yves F. Barbier 12ukwn at ...626...
Thu Aug 13 16:26:56 CEST 2009


Werner a écrit :
...
> say you have a treeview called Larch. The following stub (untested)
> should select all treeview items that begin with "A" and deselect all others
> 
> if not Larch.MoveFirst then
>     repeat
>        if Left$(Larch.Item.Text) = "A" then
>             Larch.Item.Selected = TRUE
>             else
>              Larch.Item.Selected = FALSE
>        endif
>     until Larch.MoveNext
> endif

No Werner, that don't work (wanted nb, Str, or Obj, got Fnct instead),
I'm trying to adapt the base idea with other options, but still no success.

JY
-- 
Pick another fortune cookie.




More information about the User mailing list