RpReport:SetTableAttributes() Method

<< Click to Display Table of Contents >>

Navigation:  RpReport Class >

RpReport:SetTableAttributes() Method

Previous pageReturn to chapter overviewNext page

Purpose

This method allows you to specify table attributes in the report..

Syntax

<oReport>:SetTableAttributes(                cAlias,

                                                         [cDriver],

                                                         [cTableName],

                                                         [cIndexName],

                                                         [cIndexTag])  logic (Success)

Arguments

cAlias

The alias which ReportPro has assigned to the table.  This character value can be found in the Setup Sections dialog.  This is the key used to designate which table in the data set is being replaced so it must exactly match the ReportPro alias.

cDriver

(Optional)  The driver to use with this table.

cTablename

(Optional)  The complete path and file name of the substituted table.

cIndexName

(Optional)  The index file to use in place of the index filename specified in the Setup Sections dialog.

cIndexTag

(Optional)  The index tag used in conjunction with the Index File specified above. If the Index File is specified, you must specify a Tag for DBFCDX and DBFMDX RDDs.

 

Description

To set the table attributes for tables in a report.  This function operates much the same way as the <aDbfSwap> parameter of the RpReport:Init() method making it easier to specify attributes at runtime.

 

Example

// Set the table attributes to change the driver

oReport:SetTableAttributes("Customer", "DBFCDX")