rptcalcfield |
|
The rptcalcfield object is a data member of the pvxreport object interface that is delegated to store and manipulate a calculated field definition. It can be used to retrieve the object handle for an rptcalcfield object, which allows access to all the object's methods and properties.
The following table lists the properties of the rptcalcfield object:
Property |
Description |
Reference for the data source that is associated with this calculated field. Format is Source, SourceType. | |
Description$ |
(Optional) Short description for the field. |
Expression$ |
Expression to be evaluated and loaded into the variable specified in Name$. Read only property. Loaded using the SetExpression( ) method. |
Length |
Maximum length of the field. Numeric fields may contain a scaling factor (e.g. 10.2 where 10 is the total length and 2 is the number of digits following the decimal point). |
Library$ |
Name of the library file containing the definition for this calculated field. Can be a simple file name or complete path. Read only. Set using SetLibrary( ) method. |
Name$ |
Variable name for the calculated field. |
Type$ |
Data type: N (numeric) or S (string). Set when expression is loaded using SetExpression( ) or SetTranslationValue( ) methods. |
The following table lists the methods of the rptcalcfield object:
Method |
Description |
AddTranslationValue([idx]) |
Create a new rptfilterctl object to hold the condition to be associated with the translation value. One object is created for each translation value. Also allocates storage for the translation value and an expression indicator. |
ClearTranslationValues( ) |
Removes all translation values, expression indicators, and rptfilterctl objects associated with the translation values. |
GetTranslationCondition(idx) |
Returns the object ID for the specified rptfilterctl object. |
GetTranslationValue$(idx) |
Returns the specified translation value. May be a fixed value or an expression. Refer to the IsTranslationValueExpression( ) method below to determine the content type. |
IsTranslationValueExpression(idx) |
Returns a Boolean value (0 or 1) indicating whether the specified translation value contains an expression (1) or a fixed value (0). |
MoveTranslationValue(Fromidx,Toidx) |
Changes the sequence of a translation value (i.e. value, expression indicator and rptfilterctl object sequence). The sequence of other translation values is appropriately adjusted. |
RemoveTranslationValue(idx) |
Removes the rptfilterctl object and clears the translation value and expression indicator for the specified translation value. |
Format and set the value in the
DataSource$ property. | |
Set the expression to be evaluated and loaded into the variable specified in the Name$ property. | |
Sets the name of the library file containing the definition for this calculated field specified in LibraryFile$. Can be a simple file name or complete path. Returns 1 if successful, 0 if not. | |
Sets the translation value at the specified sequence number. | |
Returns the number of translation values associated with a translation field. |