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

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

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

Example 2

dw1.Modify("emp_salary.ValidationMsg = "  

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