Expression DataWindow object property
Description
The expression for a computed field control in the DataWindow.
The expression is made up of calculations and DataWindow expression
functions. The DataWindow evaluates the expression to get the value
it will display in the computed field.
Controls
Computed field controls
Syntax
PowerBuilder dot notation:
1 |
<span>dw_control</span>.Object.<span>computename</span>.Expression |
Describe and Modify argument:
1 |
"<span>computename</span>.Expression { = '<span>string</span> ' }" |
Parameter |
Description |
---|---|
computename |
The name of the computed field control |
string |
A string whose value is the expression |
Usage
In the painter
Select the control and set the value in the Properties view, General
tab, Expression option. The More button displays the Modify Expression
dialog, which provides help in specifying the expression. The Verify
button tests the expression.
Examples
1 |
setting = dw1.Object.comp_1.Expression |
1 |
dw1.Object.comp_1.Expression = "avg(salary for all)" |
1 |
setting = dw1.Describe("comp_1.Expression") |
1 |
dw1.Modify("comp_1.Expression='avg(salary for all)'") |