Property Set Methods for COM Data Control

The following table describes a summary of property set methods you can use with COM Data Control.

Method Description Format

AddChild Method for a Property Set

Adds child property sets to a property set.

Dim oPropSet as SiebelPropertySet

Dim iIndex as Integer

iIndex = oPropSet.AddChild(childObject as Property Set)

Copy Method for a Property Set

Returns a copy of a property set.

Dim oPropSet1 as SiebelPropertySet

Dim oPropSet2 as SiebelPropertySet

oPropSet2 = oPropSet1.Copy()

GetChild Method for a Property Set

Returns a child property set of a property set.

Dim oPropSet as SiebelPropertySet

Dim oPropSet1 as SiebelPropertySet

oPropSet1 = oPropSet.GetChild(index as Integer)

GetChildCount Method for a Property Set

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

Dim oPropSet as SiebelPropertySet

Dim iCount as Integer

iCount = oPropSet.GetChildCount()

GetFirstProperty Method for a Property Set

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

Dim oPropSet as SiebelPropertySet

Dim sPropName as String

sPropName = oPropSet.GetFirstProperty()

GetNextProperty Method for a Property Set

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

Dim oPropSet as SiebelPropertySet

Dim sPropName as String

sPropName = oPropSet.GetNextProperty()

GetProperty Method for a Property Set

Returns the value of a property.

Dim oPropSet as SiebelPropertySet

Dim sPropVal as String

sPropVal = oPropSet.GetProperty(propName as String)

GetPropertyCount Method for a Property Set

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

Dim oPropSet as SiebelPropertySet

Dim count as Long

count = oPropSet.GetPropertyCount

GetType Method for a Property Set

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

Dim oPropSet as SiebelPropertySet

Dim sTypeVal as String

sTypeVal = oPropSet.GetType()

GetValue Method for a Property Set

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

Dim oPropSet as SiebelPropertySet

Dim sValVal as String

sValVal = oPropSet.GetValue()

InsertChildAt Method for a Property Set

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

Dim oPropSet as SiebelPropertySet

oPropSet.InsertChildAt(childObject as SiebelPropertySet, index as Long)

PropertyExists Method for a Property Set

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

Dim oPropSet as Property Set

Dim propExists as Boolean

propExists = oPropSet.PropertyExists(propName as String)

RemoveChild Method for a Property Set

Removes a child property set from a parent property set.

Dim oPropSet as SiebelPropertySet

oPropSet.RemoveChild(index as Long)

RemoveProperty Method for a Property Set

Removes a property from a property set.

Dim oPropSet as SiebelPropertySet

oPropSet.RemoveProperty(propName as String)

Reset Method for a Property Set

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

Dim oPropSet as SiebelPropertySetoPropSet.Reset()

SetProperty Method for a Property Set

Sets a value in the property of a property set.

Dim oPropSet as SiebelPropertySet

oPropSet.SetProperty(propName as String, propValue as String)

SetType Method for a Property Set

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

Dim oPropSet as SiebelPropertySet

oPropSet.SetType(value as String)

SetValue Method for a Property Set

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

Dim oPropSet as SiebelPropertySet

oPropSet.SetValue(value as String)