Property Set Methods for Browser Script

The following table describes a summary of the property set methods you can use in Browser Script.

Method Description Format

AddChild Method for a Property Set

Adds a child property set to a property set.

var oPropSet;

var iIndex;

iIndex = oPropSet.AddChild(childObject);

Copy Method for a Property Set

Returns a copy of a property set.

var oPropSet1;

var oPropSet2;

oPropSet2 = oPropSet1.Copy();

GetChild Method for a Property Set

Returns the index number of a child property set.

var oPropSet;

var oChildPropSet;

oChildPropSet = oPropSet.GetChild(index);

GetChildCount Method for a Property Set

Returns the number of child property sets that exist for a parent property set

var oPropSet;

var iCount;

iCount = oPropSet.GetChildCount();

GetFirstProperty Method for a Property Set

Returns the name of the first property in a property set.

var oPropSet;

var sPropName;

sPropName = oPropSet.GetFirstProperty();

GetNextProperty Method for a Property Set

Returns the name of the next property in a property set.

var oPropSet;

var sPropName;

sPropName = oPropSet.GetNextProperty();

GetProperty Method for a Property Set

Returns the value of a property.

var oPropSet;

var sValue;

sValue = oPropSet.GetProperty(propName);

GetPropertyCount Method for a Property Set

Returns the number of properties that exist in the current level in the hierarchy.

var oPropSet;

var iCount;

iCount = oPropSet.GetPropertyCount();

GetType Method for a Property Set

Returns the value of the type attribute of a property set.

var oPropSet;

var type;

type = oPropSet.GetType();

GetValue Method for a Property Set

Returns the value of the value attribute of a property set.

var oPropSet;

var sValue;

sValue = oPropSet.GetValue();

InsertChildAt Method for a Property Set

Inserts a child property set in a parent property set at a specific location.

var oPropSet;oPropSet.InsertChildAt(childObject, index);

PropertyExists Method for a Property Set

Returns a Boolean value that indicates if the property that the argument identifies exists.

var oPropSet;

var bool;

bool = oPropSet.PropertyExists(propName);

RemoveChild Method for a Property Set

Removes a child property set from a parent property set.

var oPropSet;

oPropSet.RemoveChild(index);

RemoveProperty Method for a Property Set

Removes a property from a property set.

var oPropSet;

oPropSet.RemoveProperty(propName);

Reset Method for a Property Set

Removes every property and child property set from a property set.

var oPropSet;

oPropSet.Reset();

SetProperty Method for a Property Set

Sets a value in the property of a property set.

var oPropSet;

oPropSet.SetProperty(propName, propValue)

SetType Method for a Property Set

Sets the value for the type attribute of a property set.

var oPropSet;

oPropSet.SetType(value);

SetValue Method for a Property Set

Sets the value for the value attribute of a property set.

var oPropSet;

oPropSet.SetValue(value);