Previous Topic: Attributes for Correct and/or Incorrect InputNext Topic: Alarm Status on Input Error


Error Messages

Default Error Message

Error handling provides a default error message for any field. The message has the following format:

ERROR AT row, column

How to Override the Default Message

The developer can override the default error message for a field by specifying an error message for use by error-handling. The online or batch compiler can be used to define an error message:

Defining a Message Field for a Map

An error message displays an input error only if a message field is defined for the map. The developer defines a message field for a map by using the online or batch compiler:

Field Definition Page 1 of 7 Map name: EYHTST1 Version: 1 ...5...10...15...20...25...30...35...40...45...50...55...60...65...70...75...80 _ ...5...10...15...20...25...30...35...40...45...50...55...60...65...70...75...80 Field at row 21 column 80 Drop field (/) _ Element name: $message Subscript 80 In record Version Edit Picture Display intensity 1 1. Normal 2. Bright 3. Hidden At end of field 3 1. Auto-tab 2. Lock keyboard 3. Take no action Unprotected (/) . . . . . / Required (/). . . . . . _ Automatically edited (/) _ Skipped by tab key (/) _ DC366004 Specify the variable field and any attributes F1=Help F3=Exit F4=Prev F5=Next F6=Preview F8=Fwd

Field Definition Page 1 of 7 Map name: EYHTST1 Version: 1 ...5...10...15...20...25...30...35...40...45...50...55...60...65...70...75...80 _ _______________________________________________________________________________ ...5...10...15...20...25...30...35...40...45...50...55...60...65...70...75...80 Field at row 21 column 80 Drop field (/) _ Element name: $MESSAGE Subscript 80 Display intensity 2 1. Normal 2. Bright 3. Hidden At end of field 3 1. Auto-tab 2. Lock keyboard 3. Take no action Unprotected (/) . . . . . Required (/). . . . . . _ Automatically edited (/) _ Skipped by tab key (/) _ DC366004 Specify the variable field and any attributes F1=Help F3=Exit F4=Prev F5=Next F6=Preview F8=Fwd

How are Messages Displayed?

The message field for a map displays the error message for a field in error if the dialog or program that uses the map redisplays the map with error-handling attributes. When several data fields contain incorrect input, the message field displays as many error messages as possible, in order of occurrence from top to bottom, right to left, of the incorrect data fields. A blank is displayed between each error message.