Futurebasic/Language/Reference/MID function

Revised
June 15, 2000 (Release 3)

Description
This function returns a substring or subcontainer of or , consisting of characters which begin at position   within  or. If you specify, then a maximum of   characters are returned; otherwise, all the characters from   to the end of  or  are returned. If  is less than 1, then it's treated as 1. If  is greater than the length of  or , then a null (zero-length) string is returned.

Note: You may not use complex expressions that include containers on the right side of the equal sign. Instead of using:

Use:

Example:

program output: