ITrkNewItem.NamedHoldCount (method)

method NamedHoldCount
Syntax: Long = object.NamedHoldCount ( )
Description:
The NamedHoldCount method returns the named hold count for 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
For i = 0 To 10
oTrkItem.CreateNamedHold "MYHOLD_" & Format(i, "00"), "Held to Test " & Format(i, "00"), "$OM_MASTR_BLND", 0
Next i
Count = oTrkItem.NamedHoldCount
oTrkItem.InsertItem vTrkItem