ValidationMsg

Description

The message that PowerBuilder displays instead of the default message when an ItemError event occurs in the column.

Applies to

Column controls

Syntax

PowerBuilder dot notation:

dw_control.Object.columnname.ValidationMsg

Describe and Modify argument:

"columnname.ValidationMsg { = ' string ' }"

Parameter

Description

columnname

The column for which you want to get or set the error message displayed when validation fails.

string

(exp) A string specifying the error message you want to set. String is quoted and can be a DataWindow expression.

Usage


In the painter

Set the value using the Column Specifications view, Validation Message option.

Examples

Example 1

string setting

setting = dw1.Object.emp_salary.ValidationMsg

Example 2

dw1.Object.emp_salary.ValidationMsg = &

 "Salary must be between 10,000 and 100,000"

Example 3

setting = dw1.Describe("emp_salary.ValidationMsg")

Example 4

dw1.Modify("emp_salary.ValidationMsg = "  &

"'Salary must be between 10,000 and 100,000'")