Hi, i cant seem to work out an expression to calculate how many items are in a certain folder?
Theres only "count number of items" and that counts them all?
Thanks
Andy
Printable View
Hi, i cant seem to work out an expression to calculate how many items are in a certain folder?
Theres only "count number of items" and that counts them all?
Thanks
Andy
Use the expression GetNChildren( "Tree Control", >Identifier<) (Get Child Count of).
If you want to separate items from folders use a simple Fast Loop in combination with the condition Is Folder?.
This should be pretty easy...
doesnt seem to work?? I simple have 1 event.Quote:
Use the expression GetNChildren( "Tree Control", >Identifier<) (Get Child Count of).
--selection changed
---- set counter to GetNChildren( "Tree Control", selected folder)
does nothing?
Thanks
Andy
Hmm.. its working now... how very strange.
Cheers Gustav.
Hi, it seems on my tree view, if i count the number of items in the tree, any items ive added at runtime are NOT counted for? How come? Please dont let this be another bug, as if it is, i think its time to give up with mmf, as thats all im finding!
Cheers
Andy
My guess is that those added are just virtual, if you read a filelist from a harddrive and add a folder to the view it will not create the folder on the harddrive. Instead I would use the file object to create the folder on the harddrive and then reload the filelist into the treeview and then it should count.
Just an example.
ITs ok, ive done iti think.
Cheers tho.
Andy