RpReport:SetVariableValue() Method
<< Click to Display Table of Contents >> RpReport:SetVariableValue() Method |
![]() ![]() ![]() |
Purpose
To set the value of a ReportPro user defined variable.
Syntax
<oRpReport>:SetVariableValue(cName, xValue, [nSection]) NIL
Arguments
cName |
The name of the ReportPro variable. |
xValue |
The new variable value. |
nSection |
Optional section number. The default is the first section after the optional title section. |
Example
// Change the variable used for the report title
oRpReport:SetVariableValue("ReportTitle", ;
"The New Report Title", 1)
Note: | This method searches for the variable in the primary section of the report. It may be necessary to call RpReport:Connect2Source() before using this method. See the entry for Connect2Source() for more information. |