INFIELD()

The INFIELD() operator checks for the current screen field.

Syntax

INFIELD ( [group.]field )
  1. group can be a table name, a screen record, a screen array or FORMONLY.
  2. field is the name of the field in the form.

Usage

INFIELD checks for the current field in a CONSTRUCT, INPUT or INPUT ARRAY dialog.

When used in an INPUT ARRAY instruction, the runtime system assumes that you are referring to the current row.

For a generic coding equivalent, use the DIALOG.getCurrentItem() method.

Example

INPUT ...
  IF INFIELD( customer.custname ) THEN
     MESSAGE "The current field is customer's name."
  ...