# CurrentInputPosition Property

> Returns or sets the page, line and column number of the current text input position as an array of three Long values, as shown in the status bar.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > CurrentInputPosition Property
- **400 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/currentinputposition-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/currentinputposition-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/currentinputposition-property/llms-full.txt

---

Returns or sets an array of three values which specify the page, line and column number of the current text input position. These values are the same as shown in Text Control's status bar.

### Syntax

```vbscript
TXTextControl.CurrentInputPosition [= Array]
```

| Index | Description |
|---|---|
| 0 | Specifies the current page number. The first page has the number one. |
| 1 | Specifies the current line number. The first line has the number one. |
| 2 | Specifies the current column number. The first column has the number one. |

### Data Types

Array of 3 Long.

### Examples

The following code snippet demonstrates how to use the CurrentInputPosition property to get the current position of the caret in the document and afterwards set its position to the very beginning of the text.

```vbscript
' Get current position
 cur = TXTextControl1.CurrentInputPosition
 deb = Str(cur(0)) + "-" + Str(cur(1)) + "-" + Str(cur(2))
 MsgBox deb
 ' Set new position
 cur(0) = 1 ' page
 cur(1) = 1 ' line
 cur(2) = 0 ' col
 TXTextControl1.CurrentInputPosition = cur
```

### Limitations

Run time only.

### See Also

- [Programming Category: Text Selections and Character Input](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/selections/llms-full.txt)

---

## Nearby

- **Previous:** [ControlChars Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/controlchars-property/llms-full.txt)
- **Next:** [CurrentPages Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/currentpages-property/llms-full.txt)
