Previous Topic: &CURSROW Variable

Next Topic: Control Cursor Positioning

Determine the Field Location of the Cursor

The &ZCURSFLD and &ZCURSPOS system variables are used to determine the actual field location of the cursor. This is useful for providing context sensitive help.

The &ZCURSFLD system variable contains the name of the field the cursor was in. This applies to TYPE=INPUT and TYPE=OUTVAR fields only-output fields have no name.

The &ZCURSPOS system variable provides the offset within that field where the cursor was positioned.