FutureBasic Logo

<<    Index    >> FutureBasic 5

csrlin   function



Syntax:
currentLine = csrlin

Description:
This function returns the number of the "current" text line (that is, the text line which contains the current pen position) for the current window. The text line at the top of the window is considered Line #0.
csrlin does not necessarily reflect the number of text lines which have actually been displayed. It is calculated based on the current pen position and the size of the current font.

Example:
dim as long i
window 1
text _monaco, 16
cls
for i = 1 to 10
  print "csrlin = "; csrlin
next


See Also:
pos