Hola.
Como se la cantidad de items que posee un Tree, no las ramas sino el total de items que tiene en todas las ramas.
Gracias.
Antonio Linares wrote:Gustavo,
Len( oTreeView:aItems )
function TreeViewItems( oTreeView )
local oItem, n, nItems := 0
for n := 1 to Len( oTreeView:aItems )
oItem = aItems[ n ]
nItems++
if Len( oItem:aItems ) != 0
nItems += TreeViewItems( oItem )
endif
next
return nItems
Antonio Linares wrote:Prueba esta función:
- Code: Select all Expand view
function TreeViewItems( oTreeView )
local oItem, n, nItems := 0
for n := 1 to Len( oTreeView:aItems )
oItem = aItems[ n ]
nItems++
if Len( oItem:aItems ) != 0
nItems += TreeViewItems( oItem )
endif
next
return nItems
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: Google [Bot], groiss and 31 guests