HISE Logo Forum
    • Categories
    • Register
    • Login

    Adventures in broadcaster: attachToComponentMouseEvents

    Scheduled Pinned Locked Moved General Questions
    23 Posts 4 Posters 971 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

      Link Preview Image
      W3Schools.com

      Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.

      favicon

      (www.w3schools.com)

      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 :folded_hands:

        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

          15

          Online

          1.8k

          Users

          12.0k

          Topics

          104.8k

          Posts