Visual InterDev

getproperty Method

See Also      Applies To

Returns the value of a user-defined property.

Syntax

object.getproperty

Parameters

object

A PageObject script object.

getproperty

Specifies the user-defined property whose value you want returned.

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 set the value of the user-defined property, use the setproperty 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.

For more information on creating and using properties on ASP pages, look under "Defining Properties for a Page Object" in Extending the Scripting Object Model Across Pages.