tumblr tracker

GetAt

Library Reference ›› String ››
Parent Previous Next

String.GetAt


Namespace: String


Returns a substring from a string at the specified position.


retval = String.GetAt(Input, Position, Length)


Parameters:

- Input; string constant or variable or function returning a string; the string to get the characters from

- Position; numeric value; the position where to begin with the reading

- Length; numeric value; how many characters to read


Returns:

The new string.


Example


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


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