You are here: Core Reference > Coding > Scripting > EditBox.Width

EditBox.Width

The EditBox Control Object that is returned by the AddEditBox function has a Width property. The Width property represents the width setting of the Edit Box.

Syntax

ControlObject.Width = 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

Sets the width of the Edit Box.

Arguments

Value {integer}

A number that defines the width setting of the Group Box. This is based on the average character width, so 1 is approximately 1 character wide.

Returns

Integer

Example:

EditBox1.Width = 10

Where:

  • EditBox1 is the name of the variable that stores the EditBox Control Object returned by the AddEditBox function
  • 10 is the width setting for the Edit Box.

ClearSCADA 2015 R2