PrtRegion.Id (Property Read/Write)

Syntax

PrtRegion.Id

Description

String property to get or set the Region ID of the object.

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