MIDSTR

Syntax:

MIDSTR source$, aim$, start#, length#

Copies from source$ a sub word into aim$. Where start# is the index of the first letter to be copied. The first letter of a word has the index 0.

Sample:

a$=”This is my House in Timbuktu”
MIDSTR a$, b$, 11, 5 // “House”
PRINT a$, 100, 70
PRINT b$, 100, 100
SHOWSCREEN
MOUSEWAIT