Contents
Display Legacy Contents

 Print
    Select Text  
Select a set of characters on a specified input box.

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.

     
Consider that exists an input box named "InputBox" and with the text "kalipso".
Example 1
Example 2
Example 3
Select Text(CTRL(InputBox); 0; -1)

Result: All the text in the input box is selected ("kalipso").

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

Result: The first 6 characters are selected ("kalips").

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

Result: The first 3 characters are selected ("kal").


     
  • If Begin parameter is 0 and End is -1, all the text in the input control is selected.
  • If Begin is -1, any current selection is removed.

See also
Samples

 
 
Updated: 3/21/2018 5:53 PM