LlDeleteSubString
De DigiWiki.
default { state_entry() { string ex = "abcdefghi"; llDeleteSubString(ex, 4, 7); //Incorrect! } }
default { state_entry() { string ex = "abcdefghi"; ex = llDeleteSubString(ex, 4, 7); //Correct llSay(0, ex); //Would say "abcdi" } }
//-- special case default { state_entry() { string ex = "abcdefghi"; llSay( 0, llDeleteSubString(ex, 4, 7) ); //Would say "abcdi" //-- acceptable if you do NOT want to change the contents of 'ex', only the output } }


