kytschBASIC

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

CENTRE
STRING, LENGTH

This function will return part of the string based on a length but will start from the centre of the string.

Example

DEF string$=CENTRE("AAABBBAAA", 3)

PRINT string$

LINE BREAK

PRINT CENTRE("AAABBBAAA", 3), "basic"

Output

BBB
BBB

See also