VSView Reporting Edition Reference > Field Object > Field Properties > Value Property |
Returns or sets the Field's calculated value.
field.Value[ = value As Variant ]
When a field's Calculated property is set to True, the control evaluates the expression stored in the Text property and stores the result in the Value property, which gets rendered into the report.
This is the field's default property, so when you use a field name in an VBScript expression, you are actually referring to the field's Value property. For example :
Dim sScript$
sScript = "If MyField > 100 Then " & "MyField.ForeColor = vbRed"
is equivalent to:
Dim sScript$
sScript = "If MyField.Value > 100 Then " & "MyField.ForeColor = vbRed"
Variant