HISE Logo Forum
    • Categories
    • Register
    • Login

    Adventures in broadcaster: attachToComponentMouseEvents

    Scheduled Pinned Locked Moved General Questions
    23 Posts 4 Posters 1.1k 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.
    • LindonL
      Lindon @Natan
      last edited by

      @Natan said in Adventures in broadcaster: attachToComponentMouseEvents:

      @Lindon Thanks, man, Just need to Remove the {PROJECT_FOLDER} as well!

      	if(value.indexOf("{PROJECT_FOLDER}") != -1) // This does not Work !!!
      	{
      		return value.replace("{PROJECT_FOLDER}", "");
      	}
      	
      	
      	reg tempValue;	
      	
      	if(value.indexOf("{PROJECT_FOLDER}") != -1)
      		{
      			tempValue =  value.replace(".wav", "");
                  Console.print(tempValue);  //<-- now think what you might do to this?
      	        return tempValue;
      		}
      

      nearly...

      if(value.indexOf("{PROJECT_FOLDER}") != -1)
      {
           tempValue =  value.replace(".wav", "");
           tempValue = tempValue.replace("{PROJECT_FOLDER}","");
           return tempValue;
      }		
      

      There is a better way tho...go read up about substring

      https://www.w3schools.com/jsref/jsref_substring.asp

      HISE Development for hire.
      www.channelrobot.com

      NatanN 1 Reply Last reply Reply Quote 1
      • NatanN
        Natan @Lindon
        last edited by

        @Lindon said in Adventures in broadcaster: attachToComponentMouseEvents:

        reg tempValue;

        Brilliant, Thanks a Lot mate, You're the BEST <3
        Cheers 🙏

        LindonL 1 Reply Last reply Reply Quote 0
        • LindonL
          Lindon @Natan
          last edited by

          @Natan read up about substring...

          HISE Development for hire.
          www.channelrobot.com

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

          22

          Online

          2.0k

          Users

          12.7k

          Topics

          110.2k

          Posts