locate()

Move text cursor at x, y grid coordinates.

Syntax:
locate( x , y )

Example:
for y = 1 to 20
    x= rnd(50)
    locate( x, y )
    printS( "current coordinate are x=" & x & " y=" & y )
next
waitKey