Adventures in broadcaster: attachToComponentMouseEvents
-
@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
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.
(www.w3schools.com)
-
@Lindon said in Adventures in broadcaster: attachToComponentMouseEvents:
reg tempValue;
Brilliant, Thanks a Lot mate, You're the BEST <3
Cheers :folded_hands: -
@Natan read up about substring...