ITrkItem.CreateStdAttribute (method)

method CreateStdAttribute
Syntax: object.CreateStdAttribute bName, bValue
Parameters:
bName As String -

Attribute Name
bValue As String -

Attribute Value
Description:
The CreateStdAttribute method add a standard 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.CreateStdAttribute "COLOR", "RED"
oTrkItem.CommitChanges