kytschBASIC

Put down that phone!
Please view me on real computer.

MID
STRING, START, LENGTH

This function will return the characters from a string based on a start position and a length.

Example

PRINT MID("kytschBASIC", 7, 5)

LINE BREAK



REM You can still assign the standard attributes of the PRINT command.

PRINT MID("kytschBASIC", 7, 5), "basic"

LINE BREAK



DEF string$=MID("kytschBASIC", 7, 5)

PRINT string$

Output

BASIC
BASIC
BASIC

See also