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

PRINT CENTRE$("AAABBBAAA", 3)

Output

BBB

See also