rptgroupfunc |
|
The rptgroupfunc object is a data member of the pvxreport object interface, delegated to store and manipulate a group function definition. One object is created for each function. The pvxreportGetGroupFunc( ) method can be used to retrieve the object handle for an rptgroupfunc object, which allows access to all the object' methods and properties.
The following table lists the properties of the rptgroupfunc object:
Property |
Description |
Element$ |
Data element to be used in the function calculation. This must start with an alphanumeric, optionally followed with alphanumeric, . (period) or _ (underscore) characters. |
Format$ |
Format mask for displaying the value. |
Function$ |
Name of the group function. |
Type$ |
Single character code to indicate whether the function element contains string or numeric data: |
The following table lists the methods of the rptgroupfunc object:
Method |
Description | ||||||
GetGroupFunctionDefinition$( ) |
Returns a formatted string based on rptgroupfunc properties. The format of the string is that used to define a Function= entry in the report definition file. Format for COUNT function: COUNT[( element )]: format | ||||||
GetGroupFunctionVariable$(LevelID$) |
Returns the name of the group function variable based on the current Function$, Element$ and Type$ properties and the given LevelID$.
Example: | ||||||
SetGroupFunctionDefinition$(Def$) |
Assigns rptgroupfunc properties based on a formatted string. The format of the string is that used to define a Function= entry in the report definition file. Returns 1. |