validValuesMsgKey

The property validValuesMsgKey (formerly the rangeMsgKey property) identifies the message that is displayed if the field property validValues is set and the user places out-of-range data into the field.

The message table (the table that contains the message) is identified in the program property msgTablePrefix. For details on the table name, see DataTable part in EGL source format.

The value of validValuesMsgKey is a string or literal that matches an entry of the first column in the message table.

If a numeric key is used with a message table that expects a character key, the number is converted to a character string. If a string literal is used with a message table that expects a numeric key, the value in the string must be a signed or unsigned integer.

This property applies only to numeric fields.

Related concepts
Text forms

Related reference
DataTable part in EGL source format
validationFailed()
Validation properties
verifyChkDigitMod10()
verifyChkDigitMod11()

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.