Previous Topic: MFLD Statement SyntaxNext Topic: Statements for Manual Panel Definition


Examples

The following examples illustrate use of the MFLD statement.

Example 1

Adding a Map Field Occurrence to a Map Occurrence

The sample MAP AUTOPANEL and MFLD statements add two fields to the MEALS map as shown:

ADD MAP MEALS VERSION IS 10 AUTOPANEL DEVICES=(24X80) USING RECORDS MEALS-REC VERSION 1 NOEDIT. ADD MFLD AT (7,7) ATTRIBUTES (PROTECTED BRIGHT) VALUE IS 'FIRST CLASS'. ADD MFLD AT (10,7) ATTRIBUTES (PROTECTED BRIGHT) VALUE IS 'TOURIST CLASS'.

Example 2

Deleting a Map Field Occurrence from a Map Occurrence

The MAP AUTOPANEL and MFLD statements eliminate the TOURIST CLASS field from the MEALS map as shown:

MOD MAP MEALS VERSION IS 10 AUTOPANEL DEVICES=(24X80) USING RECORDS MEALS-REC VERSION 1 EDIT ON ERROR INCORRECT ATTRIBUTES (BRIGHT) CORRECT ATTRIBUTES (DISPLAY). ADD MFLD AT (7,7) ATTRIBUTES (PROTECTED BRIGHT) VALUE IS 'FIRST CLASS'.

The FIRST CLASS map and panel fields are retained for the MEALS map.