Xbasic

CALCULATED_FIELD_SET Function

Syntax

C CALCULATED_FIELD_SET(P variables,C name,C expression)

Arguments

variables

A pointer to the variable scope. See Variable Data Types and Scope

name

The name of the calculated field. Character

expression

The definition of what the calculated field should do. Character

Description

Attempt to set or create a calculated field - returns error text if any error occured.

Discussion

The CALCULATED_FIELD_SET() function creates a calculated variable.

Example

dim pp as P
pp = local_variables()
calculated_field_set(pp, "New", "mts+dts")

Limitations

Desktop applications only.

See Also