ITrkNewItem.Clear (method)

method Clear
Syntax: object.Clear
Description:
The Clear method clears out the fields for the item.

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.Clear
oTrkItem.ItemId = "T124"
oTrkItem.ProjectId = "PA1"
oTrkItem.RegionID = "A_TP1"
oTrkItem.ItemTypeId = "BODY COMPONENT"
oTrkItem.RegionLoc = 1
oTrkItem.InsertItem vTrkItem