Skip navigation

FlexPro Documentation 2025

Color

Read access to the color of a data object. Read/write access to the color of the current formula.

Syntax

[DataObject].Color

or

[This].Color = Color

The syntax of the Color property consists of the following elements:

Element

Description

DataObject

Optional. The data object being accessed. If you omit this element, then the current formula is accessed. In the case of embedded FPScript you have to use the This keyword.

Color

A 32-bit integer value that defines the RGB color value.

With the integer values R (red), G (green) and B (blue) in the range from 0n to 255n, the RGB color value is calculated as follows: R + (G << 8n) + (B << 16n).

The value -1 corresponds to "no color".

Remarks

Write access to the header information of a data object is only allowed for the formula where the FPScript code is located. You should only use this option in embedded FPScript. For standard formula objects, you should edit the attribute on the General tab of the Properties dialog box instead.

Available In

FlexPro Basic, Professional, Developer Suite

Examples

\DataSet.Color

Returns a 32-bit integer value that represents the color.

.Color = 0x0000ff

Assigns the color 100% red to the current formula.

FlexPro Documentation 2025

Color

Read access to the color of a data object. Read/write access to the color of the current formula.

Syntax

[DataObject].Color

or

[This].Color = Color

The syntax of the Color property consists of the following elements:

Element

Description

DataObject

Optional. The data object being accessed. If you omit this element, then the current formula is accessed. In the case of embedded FPScript you have to use the This keyword.

Color

A 32-bit integer value that defines the RGB color value.

With the integer values R (red), G (green) and B (blue) in the range from 0n to 255n, the RGB color value is calculated as follows: R + (G << 8n) + (B << 16n).

The value -1 corresponds to "no color".

Remarks

Write access to the header information of a data object is only allowed for the formula where the FPScript code is located. You should only use this option in embedded FPScript. For standard formula objects, you should edit the attribute on the General tab of the Properties dialog box instead.

Available In

FlexPro Basic, Professional, Developer Suite

Examples

\DataSet.Color

Returns a 32-bit integer value that represents the color.

.Color = 0x0000ff

Assigns the color 100% red to the current formula.