You are here: Core Reference > Coding > Scripting > Editbox.SelectText

Editbox.SelectText

The EditBox Control Object that is returned by the AddEditBox function has a SelectText property. The SelectText property determines whether the value in the Edit Box is selected by default when the Form is displayed.

Syntax

ControlObject.SelectText = Value

Where ControlObject. is the name of the variable (declared in your script) that is used to store the EditBox Control Object that is returned by the AddEditBox function.

Description

Selects the specified value by default when the Form is displayed.

Arguments

Value {Boolean}

If set to True (1), the Edit box has its value selected automatically by default; if set to False (0) it does not have its value selected by default.

Returns

Boolean

Example:

EditBox1.SelectText = 1

Where:

  • EditBox1 is the name of the variable that stores the EditBox Control Object returned by the AddEditBox function
  • 1 sets the Edit Box to have option 1 selected by default when the Form is displayed.

ClearSCADA 2015 R2