4D Write v14WR SET CURSOR POSITION |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D Write v14
WR SET CURSOR POSITION
|
WR SET CURSOR POSITION ( area ; page ; column ; line ; position ) | ||||||||
Parameter | Type | Description | ||||||
area | Longint |
![]() |
4D Write area | |||||
page | Longint |
![]() |
Page number | |||||
column | Longint |
![]() |
Column number | |||||
line | 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 Write
Theme: WR Area Options
Number:
89483
Created: 4D Write 6.5
WR GET CURSOR POSITION
WR SET FRAME
4D Write Language ( 4D Write v11.6)
4D Write Language ( 4D Write v12)
4D Write Language ( 4D v13)
4D Write Language ( 4D Write v14 R2)
4D Write Language ( 4D Write v14)
4D Write Language ( 4D Write v14 R3)
4D Write Language ( 4D Write v14 R4)