[Gambas-user] Accessing the Treeview Collection

Doriano Blengino doriano.blengino at ...1909...
Wed Dec 17 14:09:31 CET 2008


Wally ha scritto:
> How to access all items in a Treeview using
> not using movefirst, movenext etc. ?
>
> FOR EACH ...  IN Treeview ???  
> ....
> NEXT
>
> regs wally
>   
Do this:

  if not xxx.MoveFirst() then
    repeat
      xxx.item.xxx()      ' do things with the current item
    until xxx.MoveNext()
  endif

TreeView.MoveXXX() return TRUE if there were no more items to move to.

Hope this is enough for you to start.

Regards,
Doriano





More information about the User mailing list