Xbasic

FIELD.EXPR_SET Function

Syntax

C Expr_Set(C expression)

Arguments

expression

An Xbasic expression that returns a value.

Description

Change the expression if field is a calculated field.

Discussion

The .EXPR_SET() method sets an expression for a calculated field. Note : This does not apply to a calculated field that is defined at the Field Rules level.

Example

dim frm as P
frm = form.view("Invoice")
frm.total.field_get().expr_set("Invoice_Items->Quantity * Invoice_Items->Price")

Limitations

Desktop applications only.

See Also