PrtItem.Add (Method)

Syntax

PrtItem.Add [extProcFlag]

Description

Adds an individual item at the same location where another item currently resides. The PrtItem.RegionLoc indicates the location at which the item will be added. The RegionLoc can be specified as PRT_FIRST, PRT_LAST, or a valid region location within the region.

Parameter

Description

ext_proc_flag

Boolean. External process flag, if set to TRUE; get all information from an external process. If not provided defaults to FALSE.

If the new item is not being copied from a previously created item, the following PRTItem object methods must be set for the add to be successful:

.RefId or .ItemId (if this is a serialized item)

.ItemType

.RegionId

.Status

.IntHold (usually false)

.ExtHold (usually false)

.RegionLoc

Example

dim NEWITEM as new prtitem

'Initialize the new item structure

NEWITEM.ItemId = IDNUM$

NEWITEM.GroupId = Groupname$

NEWITEM.RegionId = Regname$

NEWITEM.RegionLoc = PRT_LAST

NEWITEM.IntHold false

NEWITEM.ExtHold false

NEWITEM.ItemTypeId = TYPE$

NEWITEM.Status = 0

'Upload to Tracking Database

NEWITEM.Add

More information

PRT Object Model member list.