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

Query.Width

The Query Control Object that is returned by the AddQuery function has a Width property. The Width property represents the width setting of the Queries List box.

Syntax

ControlObject.Width = Value

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

Description

Sets the width of the Queries List box.

Arguments

Value {integer}

Defines the width setting of the Queries List box. This is based on the average character width, so 1 is approximately 1 character wide.

Returns

Integer

Example:

Query1.Width = 100

Where:

  • Query1 is the name of the variable that stores the Query Control Object returned by the AddQuery function
  • 100 is the width setting for the Queries List (100 characters wide).

ClearSCADA 2015 R2