Xbasic

CALCULATED_FIELD_ENUM Function

Syntax

CF_List as C = CALCULATED_FIELD_ENUM(P variables[,C format[,L local_only]])

Arguments

CF_List

A CR-LF delimited list of calculated values.

variables

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

format

Character. Optional.Default = "N". Flags and optional text formatting information. "N" = Name, "E" = Expression, "W" = Character width of field, "D" = Characters allocated to decimals

local_only

Logical

Description

Returns CR-LF serarated calculated field list (format N=name,E=expression,D=decimal,W=Width).

Discussion

The CALCULATED_FIELD_ENUM() function generates a CR-LF delimited list of calculated values for a layout.

Example

The following code was attached to a button on a form.

dim cc as C
dim pp as P
pp = local_variables()
cc = calculated_field_enum(pp,"N : E : W : D")
ui_msg_box("Calculated Fields", cc)

It produced the following dialog box.

Calculated Field Enum

Limitations

Desktop applications only.

See Also