PrtItem.Insert (Method)

Syntax

PrtItem.Insert [extProcFlag ]

Description

Inserts an Item into the Tracking Region queue. If an Item is to be inserted into the queue at a particular location (other than at the head or tail of the queue), the Region location of the Item to be inserted ahead of is specified, i.e. specifying regionLoc = 1, is equivalent to specifying regionLoc = PRT_FIRST.

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.

Example

dim NEWITEM as new prtitem
'Initialize the new item structure
NEWITEM.ItemId = IDNUM$
NEWITEM.GroupId = Groupname$
NEWITEM.RegionId = Regname$
NEWITEM.RegionLoc = 3
NEWITEM.IntHold false
NEWITEM.ExtHold false
NEWITEM.ItemTypeId = TYPE$
NEWITEM.Status = 0
'Upload to Tracking Database
NEWITEM.Insert