OsStringRemove: Difference between revisions
From OpenSimulator
Jump to navigationJump to search
imported>Djphil Created page with "{{osslfunc |permissions=true |threat_level= |function_syntax=string osStringRemove(string src, integer offset, integer count) |ossl_example=<source lang = "lsl"> // Example of..." |
imported>Djphil No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 17: | Line 17: | ||
string src = "abcdef"; | string src = "abcdef"; | ||
string sub = osStringRemove(src, 0, 3); | string sub = osStringRemove(src, 0, 3); | ||
llOwnerSay( "osStringRemove(src, 1, 3) of \"" + src + "\" is \"" + sub + "\""); | llOwnerSay("osStringRemove(src, 1, 3) of \"" + src + "\" is \"" + sub + "\""); | ||
} | } | ||
} | } | ||
</source> | </source> | ||
|description=... | |description=... | ||
| | | | ||
}} | }} | ||
Latest revision as of 07:49, 2 March 2019
string osStringRemove(string src, integer offset, integer count)
| |
| ... | |
| Threat Level | No threat level specified |
| Permissions | Use of this function is always allowed by default |
| Extra Delay | No function delay specified |
| Example(s) | |
// Example of osStringRemove
default
{
state_entry()
{
llSay(PUBLIC_CHANNEL, "Touch me to show osStringRemove");
}
touch_start(integer n)
{
string src = "abcdef";
string sub = osStringRemove(src, 0, 3);
llOwnerSay("osStringRemove(src, 1, 3) of \"" + src + "\" is \"" + sub + "\"");
}
}
| |