RpReport:GetVariableValue() Method

<< Click to Display Table of Contents >>

Navigation:  RpReport Class >

RpReport:GetVariableValue() Method

Previous pageReturn to chapter overviewNext page

Purpose

To get the value of a ReportPro user defined variable.

Syntax

<oRpReport>:GetVariableValue(cName) xValue

Arguments

cName

 The name of the ReportPro variable.

Description

Returns the ReportPro variable value as a usual.

Example

// Print the value of a ReportPro variable.

? oRpReport:GetVariableValue("ReportHDR")

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 discussion under Connect2Source() for more information.