rptcell |
|
The rptcell object is a data member of the rptline object, delegated to store and manipulate a cell definition. One object is created for each data- or format-bearing cell in a report line. The pvxreport, rptgroup or rptlineGetCell( ) methods can be used to retrieve the object handle for an rptcell object, which allows access to all the object's methods and properties.
The following table lists the properties of the rptcell object:
Property |
Description |
Align$ |
Alignment code: |
Object handle for the alternate *rpt/rptcell object that contains the definition and conditions associated with an alternate cell definition. | |
BackgroundColour$ |
The background colour of the cell can be defined in terms of an RGB: n, n, n setting (e.g. RGB:255,0,128), or using pre-defined colour names, or Black, Light Red, Light Green, Light Yellow, Light Blue, Light Magenta, Light Cyan, White, Dark Gray, Dark Red, Dark Green, Dark Yellow, Dark Blue, Dark Magenta, Dark Cyan, Light Gray. |
BottomBorder |
Single-digit code indicating the border at the bottom edge of the cell: |
Column |
Column in which the cell is located. The first column is column 1. |
Font$ |
Comma-separated string containing font information fontname, size [, attributes ][, angle ] where attributes are B (bold) or I (italic) and angle may be 0, 90 or 270; e.g. Verdana,-15,B. |
Format mask for displaying the value. May be a fixed value or expressions. Expressions are prefixed by an equals sign; e.g. =%FMT1$. | |
Hyperlink$ |
Contains the hyperlink. May be a literal value or expression. Read only. Use SetHyperlink( ) method to set. |
HyperlinkExpr$ |
X | F - Indicates whether Hyperlink$ contains a literal (F) or expression (X). Read only. Use SetHyperlink( ) method to set. |
HyperlinkOption$ |
Display option: |
Image$ |
Contains the path or URL to the image. May be a literal value or expression. Read only. Use SetImage( ) method to set. |
ImageExpr$ |
X | F - Indicates whether Image$ contains a literal (F) or expression (X). Read only. Use SetImage( ) method to set. |
ImageOption$ |
Display option: |
JoinColumns |
Number of columns joined in this cell. Default is 0 if the cell is not joined. |
JoinRows |
Number of rows joined in this cell. Default is 0 if the cell is not joined. |
LeftBorder |
Single-digit code indicating the border at the left edge of the cell: |
RightBorder |
Single-digit code indicating the border at the right edge of the cell: |
TextColour$ |
Text colour of the cell. Can be defined in terms of RGB: n, n, n setting (e.g. RGB:255,0,128), or using pre-defined colour names, or Black, Light Red, Light Green, Light Yellow, Light Blue, Light Magenta, Light Cyan, White, Dark Gray, Dark Red, Dark Green, Dark Yellow, Dark Blue, Dark Magenta, Dark Cyan, Light Gray. |
TopBorder |
Single-digit code indicating the border at the top edge of the cell: |
Fixed text value or data variable or expression whose value will be displayed in the cell. | |
WordWrap |
Indicator to wrap text in a cell: |
The following table lists the methods of the rptcell object:
Method |
Description |
AddAlternateCell( ) |
Add an AlternateCell rptcell object to the main rptcell object. Return AlternateCell. |
RemoveAlternateCell( ) |
Drop the AlternateCell rptcell object from the main rptcell object and set AlternateCell to 0. |
Puts an HTML hyperlink in the cell. (The associated text to be displayed on the report must be specified by setting the cell's Format$ and Value$ properties independently.) Hyperlink$ - Hyperlink address (may be fixed literal or expression). | |
Puts an image in the cell. (Alternate text may be specified by setting the cell's Format$ and Value$ properties independently.) |
The following methods are only available to rptcell objects specified as AlternateCell objects:
Method |
Description |
AddFilter(Setidx) |
Creates a new rptfilter object within the rptfilterset object specified by Setidx using the next available sequence number. One object is created for each filter set. |
AddFilterSet( ) |
Creates a new rptfilterset object. If one already exists, returns address to current. |
ClearFilters( ) |
Removes the rptfilterset object, resets FilterSetCount to 0. |
FilterCount([Setidx]) |
Returns the number of rptfilter objects in the rptfilterset object specified by Setidx. If Setidxis omitted, returns the number of rptfilter objects in the first filter set. |
FilterSetCount( ) |
Returns the number of rptfilterset objects in the set (1 or 0). |
GetFilterSet( ) |
Returns the handle for the rptfilterset object. This allows access to all rptfilterset properties and methods. Returns 0 if not successful. |
GetCondition$(Setidx,Filteridx) |
Returns a string containing the PxPlus expression associated with a filter. |
GetFilter(Setidx,Filteridx) |
Returns the handle for an rptfilter object. |
RemoveFilter(Setidx,Filteridx) |
Removes an rptfilter object. |
RemoveFilterSet( ) |
Removes the rptfilterset object. If the rptfilterset object is removed, FilterSetCount is set to 0. Returns the object handle if successful, 0 if not. |