TRVReportGenerationSession.GetVariableValue

<< Click to display table of contents >>

TRVReportGenerationSession.GetVariableValue

Returns a value and an associated object for the given variable.

function GetVariableValue(const Name: TRVUnicodeString;
  var Value: TRVUnicodeString; var Obj: TObject): Boolean;

Input parameter

Name – variable name (without a starting '%'). The method looks for this variable in Variables of the most deeply nested report table, then in the table containing it, and so on. Finally, it looks in the TRVReportGenerator's Variables.

Note: when processing variables in a report table properties (e.g. in row generation rule's data query, and in a hint), or cells outside any row generation rule, variables of this table are not used.

Output parameters

These parameters are valid only if the method returns True.

Value – variable value

Obj – an object associated with this variable

Return value

True if this variable exists

See also:

Definitions of Report Workshop terms