RpSection:SetVarUpdateExpression() Method

<< Click to Display Table of Contents >>

Navigation:  RpSection Class >

RpSection:SetVarUpdateExpression() Method

Previous pageReturn to chapter overviewNext page

Purpose

To set the update expression of a ReportPro variable.

Syntax

<oRpSection>:SetVarUpdateExpression(cName, xExpression)  LOGIC

Arguments

cName

The name of the ReportPro variable.

xExpression

This parameter can either be a string representing the expression to be macro compiled or a codeblock.

Description

The Update Expression of a variable is the expression that is evaluated to update a ReportPro variable before the Body Band is printed. This method returns a TRUE if it is successful; otherwise, it returns false.

Example

oRpSection:SetVarUpdateExpression("MyVar", "0")

oRpSection:SetVarUpdateExpression("MyVar2", " 'string value' ")