LlInsertString

De DigiWiki.

llInsertString("input", 2, "put out")// returns "input output"

This function will allow you to use a negative number as the position:

string insertString(string destination, integer position, string str) {
    if (position < 0)
        if ((position += llStringLength(destination)) < 0)
            position = 0;
    return llInsertString(destination, position, str);
}
Outils personnels
  • Cette page a été consultée 384 fois.
donate
Google Ads