Add method

Purpose

The Add method adds a data item to a bag. This method corresponds to the MQAI calls, "mqAddInteger"and "mqAddString," in the WebSphere MQ Programmable Command Formats and Administration Interface.

Format

Add (Value, Selector)

Parameters

Value (VARIANT) - input
Integer or string value of the data item.
Selector (VARIANT) - input
Selector identifying the item to be added.

Depending on the type of Value, MQIA_LIST or MQCA_LIST is the default. If the Selector parameter is not of type long, MQRC_SELECTOR_TYPE_ERROR results.

Visual Basic Language Invocation

To add an item to a bag:

mqbag.Add(Value,[Selector])