Validation
property (DataWindow object)
Description
The validation expression for the specified column. Validation
expressions are expressions that evaluate to true or false. They provide
checking of data that the user enters in the DataWindow.
To set the validation expression, you can also use the SetValidate
method. To check the current validation expression, use the GetValidate
method.
Applies to
Column controls
Syntax
PowerBuilder dot notation:
|
1 |
dw_control.Object.columnname.Validation |
Describe and Modify argument:
|
1 |
"columnname.Validation { = ' validationstring ' }" |
|
Parameter |
Description |
|---|---|
|
columnname |
The column for which you want to get or set the |
|
validationstring |
(exp) A string containing the rule that will be |
Usage
In the painter
Set the value using the Column Specifications view, Validation
Expression option.
Use operators, functions, and columns to build an expression. Use
Verify to test it.
Examples
|
1 2 3 |
string setting setting = dw1.Object.emp_status.Validation setting = dw1.Describe("emp_status.Validation") |