Selector parameter, Selector method, ItemIndex parameter, OutSelector parameter" /> Selector method

 

Selector method

 

Purpose

The Selector method returns the selector of a specified item within a bag. This method corresponds to the MQAI call, "mqInquireItemInfo," in the WebSphere MQ Programmable Command Formats and Administration Interface.

 

Format

Selector (Selector, ItemIndex, OutSelector)

 

Parameters

Selector (VARIANT) - input

Selector identifying the item to be inquired.

MQSEL_ANY_USER_SELECTOR is the default. If the

Selector parameter is not of type long, MQRC_SELECTOR_TYPE_ERROR results.

ItemIndex (LONG) - input

Index of the item to be inquired.

MQIND_NONE is the default.

OutSelector (VARIANT) - output

Selector of the specified item.
Note:
Either the

Selector parameter, ItemIndex parameter, or both must be specified. If neither parameter is present, MQRC_PARAMETER_MISSING results.

 

Visual Basic Language Invocation

To return the selector of an item:

OutSelector = mqbag.Selector([Selector],
[ItemIndex])