Legend property

Examples


The Legend property specifies the value of a report legend.

Syntax

report.Legend(index) [= string_value]

Parameters

report – A report object.

index – An integer that corresponds to the legend field’s array index.

string_value – The value of the legend field.

Comments

Legends are fields whose data is persistent throughout the report, and must be passed to the report as it starts. You must use the Legend property in the report’s Start event to set or return the value of a legend field in a report.

Legend fields typically include information about the report, such as the range of records the user chose for the report.

You don’t add a legend field to your project; instead, you use the Legend propertys index parameter to refer to a specific legend field on the report.


Documentation Feedback