Syntax

mqInquireBag (Bag, Selector, ItemIndex, ItemValue, CompCode, Reason)