User Tag List

Results 1 to 7 of 7

Thread: treeview. number of items in a folder?

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Location
    UK
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    treeview. number of items in a folder?

    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

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUnicode Add-onInstall Creator

    Join Date
    Jul 2006
    Posts
    1,018
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: treeview. number of items in a folder?

    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...

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Location
    UK
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: treeview. number of items in a folder?

    Use the expression GetNChildren( "Tree Control", >Identifier<) (Get Child Count of).
    doesnt seem to work?? I simple have 1 event.

    --selection changed
    ---- set counter to GetNChildren( "Tree Control", selected folder)

    does nothing?

    Thanks
    Andy

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Location
    UK
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: treeview. number of items in a folder?

    Hmm.. its working now... how very strange.

    Cheers Gustav.

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Location
    UK
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: treeview. number of items in a folder?

    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

  6. #6
    No Products Registered

    Join Date
    Sep 2006
    Location
    Germany
    Posts
    861
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: treeview. number of items in a folder?

    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.

  7. #7
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Location
    UK
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: treeview. number of items in a folder?

    ITs ok, ive done iti think.

    Cheers tho.
    Andy

Similar Threads

  1. Some help with treeview
    By sheppard1 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 13th December 2013, 04:35 PM
  2. Empty Folder in AppData Folder
    By TJM in forum Install Creator and Patch Maker
    Replies: 1
    Last Post: 26th October 2012, 01:36 PM
  3. Folder attributes? Folder Size, created ETC?
    By Gibbon in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 9th May 2009, 04:42 AM
  4. TreeView : A way to set ID to a specified item ?
    By Rushino in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 11th July 2006, 03:08 PM
  5. TreeView : Order from A to Z
    By Rushino in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 11th July 2006, 02:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •