| How to Center any text! Nice easy, helpfull program.April 3 2007 at 9:56 PM | drew (no login) | |
| CLS
INPUT "TEXT ", TEXT$
A = LEN(TEXT$)
MIDDLE = 78 / 2 - A / 2
LOCATE 23 / 2, MIDDLE : PRINT TEXT$
locate 23 / 2 + 2, middle : PRINT 23 / 2; MIDDLE
'cool huh? Before I made this I always had to guess and check every single text 'that I wanted to center. This helps with intro pages to games and stuff like 'that!
|
|
|
|