# GetCurrentField

GetCurrentField() is used to find the currently active field in the specified group.

Syntax:

GetCurrentField (group\_name)

**Return data type:** string

Arguments:

* group\_name: The name of the group to be evaluated.

## Examples

In the following, the field MyGroup includes the fields Sales and Price, and the following syntax:

`GetCurrentField (MyGroup )`

* Given that Sales is active, the script returns Sales, the active field.