VSView Reporting Edition Reference > Field Object > Field Properties > Text Property |
Returns or sets the Field's literal text or expression (depending on the Calculated property).
field.Text[ = value As String ]
The Text property contains the text that will be rendered on the report. This value may be rendered literally (without any translation) or it may be evaluated as a VBScript expression, depending on the setting of the Calculated property.
For example, assuming that the report has a source recordset with fields named Amount and SalesTax:
theField.Text = "Amount * SalesTax"
theField.Calculated = False
Debug.Print Field.Value
Amount * SalesTax
theField.Text = "Amount * SalesTax"
theField.Calculated = True
Debug.Print Field.Value
257.34
String