Previous Topic: Comparison ConditionNext Topic: Dialog Execution Status Condition


Cursor Position Condition

Purpose

Determines whether the cursor is located in a specified field following a mapin operation.

The named map field can be tested for the presence of the cursor, or a comparison of the cursor column or row position to a specified value can be made following mapin.

Syntax

►►──┬─ CURSOR ─────┬───────┬─────── at ───── map-field-name ───────┬──────────►◄
    │              └─ NOT ─┘                                       │
    │                                                              │
    └┬─ CURSOR-COLUMN ─┬── comparison-operator  cursor-position ───┘
     └─ CURSOR-ROW    ─┘

Parameters

NOT

Specifies the condition is true only when the cursor is not located in the named map field.

map-field-name:

Tests the named map field for the presence of the cursor.

CURSOR-COLUMN

Specifies that the comparison with curson-position is made using the value in the CURSOR-COLUMN.

CURSOR-ROW

Specifies that the comparison with curson-position is made using the value in the CURSOR-ROW field.

comparison-operator:

The comparison operators are:

Operator

Synonym

Meaning

EQ

=

Equal

NE

 

Not equal to

GT

>

Greater than

LT

<

Less than

GE

 

Greater than or equal to

LE

 

Less than or equal to

cursor-position:

Specifies the value being compared to the value in the CURSOR-COLUMN or CURSOR-ROW field. The specified value should correspond to a possible cursor column or row position on the terminal in use.

Cursor-position is a value variable, arithmetic expression, or numeric constant that is specified according to the rules presented in this manual.