Skip to content
Tristan Hume edited this page Apr 23, 2012 · 3 revisions

#whatcol

##Syntax whatcol : int

##Description The whatcol function is used to determine the cursor position's column.

##Example This program outputs The current row is 5, the current column is 15.

    locate  ( 5, 10 )
    put "12345"..
    put "The current row is", whatrow
    put "The current column is", whatcol

##Details The screen should be in a "screen" or "graphics" mode. whatcol functions properly even if the cursor is invisible.

##See also the whatrow.html function, which is used to set.html the determine the cursor row. See also the locate.html, maxrow.html and maxcol.html procedure.html.

See also predefined unit textmodule.html.

Clone this wiki locally