TextCol
TextCol (Function)
Format
textcol
textcol ( )
Description
Returns the column the next Print will write in, counting from zero.
It reports where the program is about to print, not wherever you may have clicked in the window with the mouse. That is what makes
locate textcol, textrow
a statement that does nothing at all: it puts the cursor back exactly where it already was.
Read together with TextRow it lets a program note a spot, print somewhere else, and come back to it:
c = textcol
r = textrow
locate 0, 20
print "a message at the foot of the window";
locate c, r
note
Example
textfont "Courier New", 12
cls
locate 12, 3
print "some text";
print
print "that print started at column " + textcol + " ... "
locate 12, 3
print "and textcol now reads " + textcol + " after locate"
See Also
Locate, Print, TextBackground, TextChar, TextColor, TextFont, TextRow, TextScreen
History
| 2.3 | New To Version |