okay.

by gopus (no login)

debbie, what exactly are you trying to do?

As far as centering crap on the screen is concerned, you can do that by using LOCATE, if I remember correctly.

screenlength% = 41
text$ = "center me"
LOCATE 1, screenlength% - (LEN(text$) / 2)
PRINT text$


LEN finds the length of the text and divides it by two. So if there is 4 characters, it divides it by 2 and then finds the difference with that and the max length of the screen (you'll need to set this yourself). The difference of those two things tells us where it should be located on the screen.

Posted on Apr 7, 2010, 8:36 PM

Respond to this message   

Return to Index