Validation DataWindow object property
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.
Controls
Column controls
Syntax
PowerBuilder dot notation:
1 |
<span>dw_control</span>.Object.<span>columnname</span>.Validation |
Describe and Modify argument:
1 |
"<span>columnname</span>.Validation { = '<span> validationstring</span> ' }" |
Parameter |
Description |
---|---|
columnname |
The column for which you want to get |
validationstring |
(exp) A string containing |
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 |
string setting |
1 |
setting = dw1.Object.emp_status.Validation |
1 |
setting = dw1.Describe("emp_status.Validation") |