Difference between revisions of "LlInsertString"

From Second Life Wiki
Jump to: navigation, search
Line 1: Line 1:
{{LSL_Function
+
{{LSL_Function/negative_index|false|position}}{{LSL_Function
 
|func_id=96|func_sleep=0.0|func_energy=10.0
 
|func_id=96|func_sleep=0.0|func_energy=10.0
 
|func=llInsertString|return_type=string|p1_type=string|p1_name=dst|p2_type=integer|p2_name=position|p3_type=string|p3_name=src
 
|func=llInsertString|return_type=string|p1_type=string|p1_name=dst|p2_type=integer|p2_name=position|p3_type=string|p3_name=src
Line 10: Line 10:
 
|examples
 
|examples
 
|helpers
 
|helpers
|also_functions=*{{LSLG|llDeleteSubString}}
+
|also_functions={{LSL DefineRow||[[llDeleteSubString]]}}
*{{LSLG|llGetSubString}}
+
{{LSL DefineRow||[[llGetSubString]]}}
 
|also_events
 
|also_events
 
|also_tests
 
|also_tests
 
|also_articles
 
|also_articles
 
|notes
 
|notes
|permission
 
|negative_index=false
 
 
|sort=InsertString
 
|sort=InsertString
 
|cat1=String
 
|cat1=String

Revision as of 16:24, 20 July 2007

Summary

Function: string llInsertString( string dst, integer position, string src );

Returns a string dst with src inserted starting at position.

• string dst
• integer position
• string src

position does not support negative indexes.

Caveats

  • If position is out of bounds the script continues to execute without an error message.
All Issues ~ Search JIRA for related Bugs

Examples

See Also

Functions

•  llDeleteSubString
•  llGetSubString

Deep Notes

Search JIRA for related Issues

Signature

function string llInsertString( string dst, integer position, string src );