Expression
property (DataWindow object)
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.
Applies to
Computed field controls
Syntax
PowerBuilder dot notation:
|
1 |
dw_control.Object.computename.Expression |
Describe and Modify argument:
|
1 |
"computename.Expression { = 'string' }" |
|
Parameter |
Description |
|---|---|
|
computename |
The name of the computed field control in the |
|
string |
A string whose value is the expression for the |
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 2 3 4 |
setting = dw1.Object.comp_1.Expression dw1.Object.comp_1.Expression = "avg(salary for all)" setting = dw1.Describe("comp_1.Expression") dw1.Modify("comp_1.Expression='avg(salary for all)'") |