Siebel Object Interfaces Reference > Interfaces Reference > Control Methods >

GetProperty Method


The GetProperty method returns the value of the property of a control.

Syntax

controlVar.GetProperty(propName)

Argument
Description

propName

The name of the property to be retrieved

Returns

The value of the property of a control.

Usage

GetProperty can be used with the following controls: CheckBox, ComboBox, TextBox, TextArea, and Label.

Use GetProperty to call the following properties: Background Color, Enabled, FontType, FontColor, FontSize, FontStyle, Height, Width, Shown, Read Only, Visible.

If more than one property is to be retrieved, each must be retrieved in a separate statement.

Used With

Browser Script

Example

This code sample uses GetProperty to return values for FontSize, Background Color, Width, and Height.

TheApplication().SWEAlert("checkbox.FontSize : " + objCheckBox.GetProperty("FontSize"));
TheApplication().SWEAlert("checkbox.BgColor : " + objCheckBox.GetProperty("BgColor"));
TheApplication().SWEAlert("checkbox.Width : " + objCheckBox.GetProperty("Width"));
TheApplication().SWEAlert("checkbox.Height : " + objCheckBox.GetProperty("Height"));

Siebel Object Interfaces Reference