ITrkItem.CreateExtAttribute (method)

method CreateExtAttribute
Syntax: object.CreateExtAttribute bName, vValue
Parameters:
bName As String -

Attribute Name
vValue As VARIANT -

Attribute Value
Description:
The CreateExtAttribute method add an extended attribute to the given item. If the attribute already exists the value will be modified.

Example:

Dim oTrkItemAgent As Object
Dim oTrkItems As Object
Dim oTrkItem As Object
Set oTrkItemAgent = CreateObject("Tracker.TrkItemAgent")
oTrkItemAgent.Execute oTrkItems
Set oTrkItem = oTrkItems.Item(1)
oTrkItem.CreateExtAttribute "COLOR", "RED"
oTrkItem.CommitChanges