ITrkNewItem.AddItem (method)

method AddItem
Syntax: Boolean = object.AddItem ( pTrkItem )
Parameters:
Optional pTrkItem As VARIANT* -

Reference to the created Item
Description:
The AddItem method adds the item to the given location.

Example:

Dim oTrkItem As Object
Dim vTrkItem As Variant
Set oTrkItem = CreateObject("Tracker.TrkNewItem")
oTrkItem.Clear
oTrkItem.ItemId = "T123"
oTrkItem.ProjectId = "PA1"
oTrkItem.RegionID = "A_TP1"
oTrkItem.ItemTypeId = "ITEMTYPE1"
oTrkItem.RegionLoc = -1
oTrkItem.AddItem vTrkItem