Foxpro® fiunction substr()

The FoxPro® function substr() returns a part of a string. It is pretty easy, start counting the characters in the string by '1' and remember the (index) number of the first character you want to be returned. Now count the amount of characters to return from the string. The one you got the index from is '1'. If you decide to include the following char, this is '2'. If you omit the number of chars to return all chars from the index position

Microsoft help: substr