AddItem Method
Description
Creates a new item object.
Syntax
Visual Basic
Public Function AddItem( _
   ByVal ItemData As Variant _
) As Object
Parameters
ItemData

There are three options for ItemData:

  • Null. Creating a virtual Run object with Null ensures that you cannot then Post until the run name and all other required fields are initialized.
  • The name of the run (string).
  • An array consisting of the following elements:

    (0) Name - The name of the run (string. required).

    (1) Tester - The name of the user responsible (string. optional).

    (2) Location - The host name (string. optional). The default is the host name of the current machine.

Return Type
Remarks

Always set a status when creating a new run:

Set NewRun = RunF.AddItem(Null)
NewRun.Status = "No Run"
NewRun.Name = "run 01"
NewRun.Post

 

Following a call to AddItem with an array of parameters, the Run table field RN_PATH contains the value from the array(2),  if it was passed. If array(2) was an empty string (""), then field RN_PATH contains "a_b" where "a" is the RN_CYCLE_ID and "b" is the RN_RUN_ID. Field RN_HOST is always empty following a call AddItem.

See Also