HISE Logo Forum
    • Categories
    • Register
    • Login

    FindFiles to Array with Strings

    Scheduled Pinned Locked Moved Scripting
    2 Posts 2 Posters 105 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • CasmatC
      Casmat
      last edited by

      Hey!

      Almost done with the preset browser, last thing to do! I have this:

      Items = FileSystem.findFiles(folderUser, "*.preset", false);
      

      The resulting Items variable is an array, but its full of objects. I tried this

      	for(item in Items)
      	{
      		Console.print(item.toString(NoExtension));
      	};
      

      But its still printing the full path

      i make music

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @Casmat
        last edited by

        @Casmat You need to use item.NoExtension

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        33

        Online

        1.8k

        Users

        12.0k

        Topics

        104.5k

        Posts