Skip to content
Paul Squires edited this page Oct 19, 2026 · 2 revisions

Home › Console Functions › CsrLin

CsrLin

Returns the row the cursor is on, counting from 1 at the top.

Syntax

Declare Function CsrLin ( ) As Long

Description

Returns the current row the cursor is on (i.e. the "cursor line"). The topmost row is number 1.

Return Value

An Long specifying the current row of the cursor.

Remarks

Usage

result = CsrLin

Differences from QB

  • None

See also

Examples

Print "The cursor is on row:"; CsrLin


Category: Console Functions
Kind: function


Reproduced from the FreeBASIC Wiki Manual under the GNU Free Documentation License 1.3 — with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. Copyright © the FreeBASIC project and wiki contributors. See License.

Clone this wiki locally