PrtRegion.DeleteItem (Method)

Syntax

PrtRegion.DeleteItem regionLoc, disposition [, comment$]

Description

Deletes all items in a location whose number was defined as a parameter.

Parameter

Description

regionLoc

Integer. The location of the item in the region.

disposition

Integer. The disposition of the deleted item. See table below.

comment$

String. (Optional) - an optional comment to place in the PRT log.

Disposition

Description

PRT_SCRAP

Scrap the item.

PRT_DELETE

Delete the item.

PRT_NO_CHECK_SCRAP

Scrap the item overriding region locking status.

PRT_NO_CHECK_DELETE

Delete the item overriding region locking status.

Example

Dim Region as new PrtRegion

Region.Id = "PRODUCTION"

Region.GetData

For i = Region.MaxLocation to 1 Step -1

  Region.DeleteItem i, PRT_DELETE

Next i

More information

PRT Object Model member list.