# TabCurrent Property

> Selects the tab number from 1 to 14 that the TabPos and TabType properties of the TXTextControl read and change, with Basic examples for tabs.

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

---

Specifies the current tab number for the properties [TabPos](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabpos-property/llms-full.txt) and [TabType](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabtype-property/llms-full.txt).

### Syntax

```vbscript
TXTextControl.TabCurrent [= value]
```

### Data Types

Integer.

### Examples

The first of the following Basic examples moves the first tab to a new position 1 inch from the left border and changes it to a decimal tab. The second of the following Basic examples changes all the tabs to be right-aligned at 1/2 inch gradations:

```vbscript
TXTextControl1.TabCurrent = 1
TXTextControl1.TabType = 4
TXTextControl1.TabPos = 1440
```

```vbscript
' Delete all tabs
for n=14 to 1 step -1
   TXTextControl1.TabCurrent = n
   TXTextControl1.TabPos = 0
next n
' Create new tabs
for n=1 to 14
   TXTextControl1.TabCurrent = n
   TXTextControl1.TabPos = n*720
   if (TXTextControl1.TabPos > 0) then _
      TXTextControl1.TabType = 2
next n
```

### Remarks

Text Control supports up to 14 tabs for each paragraph. Valid values for this property are 1 to 14.

Text Control sorts the tabs in ascending order whenever you change the position of a tab, so a tab's number can change when it is moved. In this case, the TabCurrent Property is updated to reflect the change. Tabs outside of the paragraph are automatically set to zero.

### See Also

- [TabPos Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabpos-property/llms-full.txt)
- [TabType Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabtype-property/llms-full.txt)
- [Programming Category: Paragraph Formatting](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/paragraph-formatting/llms-full.txt)

---

## Nearby

- **Previous:** [SupportedFonts Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/supportedfonts-property/llms-full.txt)
- **Next:** [TabDialog Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabdialog-method/llms-full.txt)
