setproperty Method

See Also            Applies To

Sets the value of a user-defined property.

Syntax

object.setproperty

Parameters

object

A PageObject script object.

setproperty

Specifies the user-defined property whose value you want to set.

Remarks

This method is created by the PageObject design-time control. For each property that you create on the Properties tab of the PageObject control's custom properties dialog box, the PageObject control creates a pair of methods based on that property. For example, if you add a property to the PageObject control and name it "Cost", then the control creates getCost and setCost methods.

To return the value of the user-defined property, use the getproperty method.

Note   You can set the scope (read/write, client/server) of the property on the Properties tab of the PageObject control's custom properties dialog box.

An alternate way to get and set the values of user-defined properties is to use the getState and setState methods.