OsStringSubString

From OpenSimulator

Revision as of 13:48, 24 February 2019 by Djphil (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
string osStringSubString(string src, integer offset)

string osStringSubString(string src, integer offset, integer length)

...
Threat Level ... is unknown threat level
Permissions Use of this function is always allowed by default
Extra Delay No function delay specified
Example(s)
// Example of osStringSubString
 
default
{
    state_entry()
    {
        llSay(PUBLIC_CHANNEL, "Touch me to show osStringSubString");
    }
 
    touch_start(integer n)
    {
        string src = "abcdef";
        string sub = osStringSubString(src, 1);
        llOwnerSay( "osStringSubString(src, 1) of \"" + src + "\" is \"" + sub + "\"");
        sub = osStringSubString(src, 1, 2);
        llOwnerSay( "osStringSubString(src, 1, 2) of \"" + src + "\" is \"" + sub + "\"");
    }
}


Personal tools
General
About This Wiki