Locate
Sets the current cursor position
Syntax
`
Locate [row As Integer ][, [column As Integer ][, [cursorstate As Integer ]][, [start As Integer ][, [stop As Integer ]
`
Usage
`
Locate [row][, [column][, [cursorstate]]
`
Parameters
`row`
the 1-based vertical character position in the console.
`column`
the 1-based horizontal character position in the console.
`cursorstate`
the state of the cursor. `0` is off, `1` is on (console-mode only).
`start`
Ignored. Allowed for -lang qb dialect compatibility only.
`stop`
Ignored. Allowed for -lang qb dialect compatibility only.
Description
Sets the text cursor in both graphics and console modes.
Example
`
Locate 10
Print "Current line:"; CsrLin
`
Differences from QB

- The `start` and `stop` arguments have no effect in FreeBASIC.

See also

- `CsrLin`
- `Pos`
- `Print`