TibrvMsg.getFieldByIndex()

Method

Declaration

TibrvMsgField getFieldByIndex(int fieldIndex)
  throws ArrayIndexOutOfBoundsException TibrvException

Purpose

Get a field from a message by an index.

Remarks

Programs can loop through all the fields of a message, to retrieve each field in turn using an integer index.

The method takes a snapshot of the field, and returns that information as a field object.

Add, remove and update calls can perturb the order of fields (which, in turn, affects the results when a program gets a field by index).

Parameter

Description

fieldIndex

Get the field with this index. Zero specifies the first field.