| 4D v13WR SET CURSOR POSITION | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|  | 
    4D Write v13
 WR SET CURSOR POSITION 
         | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| WR SET CURSOR POSITION ( area ; page ; column ; row | level ; position ) | ||||||||
| Parameter | Type | Description | ||||||
| area | Longint |   | 4D Write area | |||||
| page | Longint |   | Page number | |||||
| column | Longint |   | Column number | |||||
| row | level | Longint |   | Line number | |||||
| position | Longint |   | Horizontal position of the cursor in the line | |||||
The WR SET CURSOR POSITION command moves the insertion point to a new position specified by page, column , line and position.
If you want to place the cursor in an area other than the body area, you need to use the WR SET FRAME command before using the WR SET CURSOR POSITION command.
You want to move the insertion point to the beginning of the 10th line of the 4th page:
  `Making sure that we are in the body area of the document
 If(WR Get frame(Area)#0)
  `Otherwise, moving to the body area
    WR SET FRAME(Area;wr text frame)
 End if
  `Moving the cursor
 WR SET CURSOR POSITION(Area;10;1;10;1)
  `Scrolling area to display the insertion point
 WR SCROLL TO SELECTION(Area)
	Product:  4D
	Theme:  WR Area Options
	Number:  
        89483
        
        
        
	
	Created:  4D Write 6.5
WR GET CURSOR POSITION
WR SET FRAME