MID

r = MID (s, start [,length])

Returns the substring of string s starting from the position start with length length. If the length parameter is omitted, MID returns the whole string from the position start.

Example

s = "abcd"
print MID(s, 3)         ' Output: cd
print MID(s, 3, 1)      ' Output: c