PrtRegion.Item (Function)

Syntax

PrtRegion.Item(index)

Description

Returns PrtItem. To return a specific item by index from a previous call to GetItemList.

Example

Dim Region as new PrtRegion

Region.Id = "PRODUCTION"

Region.GetItemList

'Get all items in a region and delete those items with a

'    specific ItemTypeId.

For i = 0 to Region.ItemCount - 1

   If Region.Item(i).ItemTypeId = "MARKVII" then

      Region.DeleteItem i, PRT_DELETE, "Obsolete Type"

   End If

Next I

More information

PRT Object Model member list.