method CreateAttribute | |
Syntax: | Boolean = object.CreateAttribute ( bName, vValue, nType ) |
Parameters: |
bName As
String -
Attribute Name vValue As
VARIANT -
Attribute Value nType As
Long -
Attribute Type 0 = Extended Attribute, 1 = Standard Attribute |
Description: | The CreateAttribute method allows the user to create a standard or extended attribute on the item. Example: Dim oTrkItem As Object Dim vTrkItem As Variant Set oTrkItem = CreateObject("Tracker.TrkNewItem") oTrkItem.ItemId = "T123" oTrkItem.ProjectId = "PA1" oTrkItem.RegionID = "A_TP1" oTrkItem.ItemTypeId = "ITEMTYPE1" oTrkItem.RegionLoc = -1 lRetValue = oTrkItem.CreateAttribute ("STDATTR_1",
"STDVAL_1", 1) oTrkItem.InsertItem vTrkItem |