# Select Text

Select a set of characters on a specified input box.

Action available for the following operating systems:

![](https://3821468174-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LrTlA1suFa5N48x_83N%2F-MAlPVpH3WRwBy16c7JY%2F-MAlQBZuuTnc6hyzKSVQ%2Fimage.png?alt=media\&token=5c9534b7-ca05-4ac4-b408-2207cd5a5295)

### Parameters

* **Control** *\<unquoted string> -* The name of the control.
* **Begin** *\<numeric> -* Defines the begin of the selected text.
* **End** *\<numeric> -* Defines the end of the selected text.

### Usage

Consider that exists an input box named "InputBox" and with the text "kalipso".

#### &#x20;**Example 1**

```
Select Text(CTRL(InputBox); 0; -1)
```

&#x20;**Result**: All the text in the input box is selected ("kalipso").

#### **Example 2**

```
Select Text(CTRL(InputBox);0;6)
```

&#x20;**Result**: The first 6 characters are selected ("kalips").

#### **Example 3**

```
Select Text(CTRL(InputBox);0;3)
```

&#x20;**Result**: The first 3 characters are selected ("kal").

{% hint style="info" %}
If *Begin* parameter is 0 and *End* is -1, all the text in the input control is selected.
{% endhint %}

{% hint style="info" %}
If *Begin* is -1, any current selection is removed.
{% endhint %}
