HISE Logo Forum
    • Categories
    • Register
    • Login

    Trying to remove the text {PROJECT_FOLDER} from getMidiFileList

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 279 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.
    • M
      Mwins
      last edited by

      Hey does anyone know how to remove the {PROJECT_FOLDER} text from the getMidiFileList array? I have a midi file list connected to a ComboBox and the list displays as {PROJECT_FOLDER}mymidifile.mid for each item.

      This shows up in development and also on the exported plugin. The functionality is all good but I don't want the user to see {PROJECT_FOLDER} before every item.

      Is there a way to edit the text or customize how the data is displayed in the combobox?

      .getMIDIFileList();
      
      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @Mwins
        last edited by

        @Mwins Use the substring function

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

        1 Reply Last reply Reply Quote 0
        • M
          Mwins
          last edited by

          @d-healey, Thanks D, I looked into that but couldn't quite get it to work but it lead me to some other string functions such as replace which ended up being exactly what I was looking for. For anybody looking for an answer to this thread, I ended up using

          const var oldstr = "{PROJECT_FOLDER}";
          const var newstr = "";
          
          .replace(oldstr, newstr)
          
          1 Reply Last reply Reply Quote 1
          • First post
            Last post

          49

          Online

          1.7k

          Users

          11.7k

          Topics

          101.8k

          Posts