ComponentOne VSView Reporting Edition
Text Property

Returns or sets the Field's literal text or expression (depending on the Calculated property).

Syntax

field.Text[ = value As String ]

Remarks

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

Data Type

String

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback