String.Insert

Parent Previous Next

String.Insert.

A substring value is inserted into the string at the position specified by the index parameter. The function returns Self for a possible continuation of operations.


Warning: In reality this function implements an "insert if possible - else append" operation!


Syntax.


 Insert(Integer index; String value) : <Self>

 


Arguments:


Example:


 String s;

 s := "0145";

 s.Insert(2, "23");  //Now s == "012345";

 s := "0123";

 s.Insert(99, "45"); //Now s == "012345";