### CurrentFieldValue

Basic and Crystal syntax.

##### Returns

Can return any field type

##### Action

CurrentFieldValue returns the current value of the field that is about to be printed.

##### Typical Uses

You can use CurrentFieldValue to help do conditional formatting on a field element, field object or cross-tab summary or label.

##### Examples

In Crystal syntax, you can enter a formula like:

`if CurrentFieldValue = 0 then crRed`

In Basic syntax, the formula will be:

`If CurrentFieldValue = 0 Then formula = crRed`

Formats the font color of the object to print red when the value of the field is zero.

##### Comments

- CurrentFieldValue is only available when entering field formatting formulas.
- The return type depends on the context of the formula. For example, if you are formatting a string field CurrentFieldValue returns a string type, if you are formatting a date field, CurrentFieldValue returns a date type.

Seagate Software, Inc. http://www.seagatesoftware.com Please send comments to: techpubs@seagatesoftware.com