SetCursorY
SetCursorY Ypos
 
Parameters:

    Ypos = The Y coordinate of where you wish to position the Text output cursor
Returns: NONE
 

SetCursorY positions only the Print cursors Y position.

While setting the print cursor is invisible to the user, the print command uses the print cursors position when it outputs.



FACTS:


* By default the print Cursor will be set to X position 0 and Y position 0.

* Each time a print command is executed, the print cursor will automatically move to the next line for you.

* By default, when the print cursor moves to a new line, it's X position is set to current margin position, which is normally zero. If you want to change this, use CursorMargin



Mini Tutorial:


This example manually sets the print cursors Y position to displays two messages down the screen. Each message is printed a different Y coordinate.


  
  
; Set the Print Cursor position to 100 Xpos
  SetCursorY 100
  
; Display a text message at the current cursor's position.
  Print "Hello World"
  
; Set the Print Cursor position to 200 Xpos
  SetCursorY 200
  
; Display a text message at the current cursor's position.
  Print "Hello World"
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  
  




This example would output the two lines of test something like this down your screen.

  
  
  
  
  Hello World
  
  
  
  
  Hello World
  

 
Related Info: CursorLineFeed | CursorMargin | GetCursorLineFeed | GetCursorMargin | GetCursorX | GetCursorY | Print | SetCursor | SetCursorX :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com