
Similar to RIGHT$ and LEFT$, MID$ is a string function that can be used to extract character sequences from a source strings. But differently from those other string functions, MID$ needs a starting position and a length counter to generate new strings. More precise: MID$ needs three arguments, the first one is the source string, the second one is the offset from the right and the last one is the length of the result string.
Extract "567" out of "0123456789abcdef"
outmode -2 let a$ = "0123456789abcdef" let b$ = mid$ (a$,6,3) print a$ print b$