LOCATE

From Liberty BASIC Family
Jump to navigation Jump to search
Supported in Just BASIC Supported in Liberty BASIC Not supported in Liberty BASIC 5 Not supported in Run BASIC

Description

Locate is used to position text in the mainwin.

Syntax

  1. locate x, y

Hints

Top left corner is 1, 1.
If you are porting QBASIC code, it has x, y reversed.
See the TAB() function for formatting text in columns in a mainwin.

Example

' The text position is by x and y coordinates, which
'   represent columns and rows - not screen pixels.
    print
    print
    print "I agree to the proposed rules changes."
    locate 15, 6
    print "________________________"
    locate 21, 8
    print "Signature"
    end

Useful Procedures

' Place a useful function or sub using this keyword here