# Subordinate Objects

CalcItem |

The CalcItem subordinate object is used to define a calculated item in a view. See Define Calculated Items. One is defined for each item. The CalcItem object corresponds to a record in the pvxview.clc file.

For information on the pvxview.clc file structure, see Views System File Structures. Properties are read only and are set using corresponding Setxxx( ) methods.

(The CalcItem subordinate object was added in PxPlus 2021.)

## CalcItem Properties

The following table lists the properties of the CalcItem subordinate object:

Property | Description
Class$ | Class of item.
DataType$ | Data type:
S | String data (Default)
N | Numeric data
Description$ | Item description.
Expression$ | Formula/expression to derive the data.
InternalD$ | Internal identifier for the calculated item.
Length | Maximum item length.
Name$ | Field or column name (no trailing "$").
ParentSource | Object identifier for the parent view object.

## CalcItem Methods

The following table lists the methods of the CalcItem subordinate object:

Method | Description
Description$( ) | Returns the description.
SetClass(Class$) | Set class of item. (Not Currently Used)
SetType(Type$) | Set data type:
S | String data
N | Numeric data
SetDescription(Description$) | Set item description.
SetExpression(Expression$) | Set formula/expression to derive the data.
SetInternalID(InternalID) | (Internal Use Only) Set internal identifier for the data source element.
SetLength(Length) | Set item length.
SetName(Name$) | Set field or column name (no trailing "$").