PrtRegion.ItemCount (Property Read)

Syntax

PrtRegion.ItemCount

Description

Returns the total number of items in a region, regardless of the number of locations or number of items per location.

This integer property gets the number of items found by a previous GetItemList or LocateItem call.

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.