Returns the string part of the string starting at the given position and optionally limited to the given length.
Mid( x, y ) Mid( x, y, z )
x | The input string. |
---|---|
y | The starting position to extract from the input string (starting at 1) |
z | The length to extract from the string, -1 is to the end [OPTIONAL, default is -1] |
A string.
mid("abc",1,1) // Returns the string "a" mid("abc",2) // Returns the string "bc"