tumblr tracker

InsertAt

Library Reference ›› String ››
Parent Previous Next

String.InsertAt


Namespace: String


Inserts a string in a string at the specified position.


retval = String.InsertAt(Input, Position, Value)


Parameters:

- Input; string constant or variable or function returning a string; the string to insert the Value

- Position; numeric value; the position where to insert the Value

- Value; string constant or variable or function returning a string; the string to insert at the Position in the Input string.


Returns:

The new string containing the inserted value.


Example


$str = String.InsertAt("My string", 3, "first ");


After execution of the above line the $str variable will contain the My first string value.