xRecord.getFieldValue Method

Gets the value of the specified field from a table buffer.

Syntax

public anytype getFieldValue(str fieldName, [int arrayIndex])

Run On

Called

Parameters

  • fieldName
    Type: str
    The name of the field from which to get the value.
  • arrayIndex
    Type: int
    The array index of the field; optional.

Return Value

Type: anytype
The value of a field.

Remarks

The arrayIndex parameter only applies to array fields. Either omit this parameter or specify 0 (zero) for fields that are not arrays.This method throws an ArgumentOutOfRange exception if the specified field is unknown.

See Also

Reference

xRecord Class