Use this function to return the value of the FieldClass
Property of the field that is currently selected.
This function returns an error if no field is selected.
Parameters
- FieldRef
-
Type: FieldRef
Refers to the current field.
Property Value/Return Value
Type: Option
The field class of the field.
Remarks
Example
In this example, the return value of the CLASS function
is converted to Text and then converted to an Option. This example
requires that you create the following variables.
Name |
DataType |
OptionVar
|
Option
|
FldRef
|
FieldRef
|
The value of the OptionString property of OptionVar is
Normal,FlowFilter,FlowField.
|
Copy Code |
EVALUATE(OptionVar,FORMAT(FldRef.CLASS));
|
In this example, the return value of the CLASS function
is converted to Text and then converted to an Option. This example
uses the Field virtual table instead of an Option variable. The
Field virtual table has a Class field, which is an Option and
already has the correct OptionString.
This example requires that you create the following
variables.
Name |
DataType |
Subtype |
FieldRec
|
Record
|
Field
|
FldRef
|
FieldRef
|
|
|
Copy Code |
EVALUATE(FieldRec.Class,FORMAT(FldRef.CLASS));
|
See Also