# CursorRel()
| Valid For | #HMI |
|---|---|
| Applies To | HMI430, HMI700 |
This function moves the cursor relative to its current position.
Function Prototype
#HMI CursorRel(
x:Horizontal,
y:Vertical )
| Parameter | Option | Description |
|---|---|---|
| x | mandatory | Amount to move the cursor horizontally, may use any of the positioning methods, 0 means don't move horizontally. |
| y | mandatory | Amount to move the cursor vertically, may use any of the positioning methods, 0 means don't move vertically. |
Description
Allows you to move the cursor relative to its current position.
Examples
#HMI CursorRel( x:-2, y:10px )
Moves the cursor left 2 characters (based on the current font) and down 10 pixels.
