[−][src]Module basic::__Chapter_3::MID
MID$(A$,X,[Y])
Returns a portion of A$.
The returned string will begin with the character in position X. If Y is present it will limit the length, otherwise everything until the end of the string is returned.
PRINT MID$("HUNT THE WUMPUS", 6, 3)
THE
PRINT MID$("HUNT THE WUMPUS", 6)
THE WUMPUS