ComponentOne VSView Reporting Edition
Value Property

Returns or sets the Field's calculated value.

Syntax

field.Value[ = value As Variant ]

Remarks

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"

Data Type

Variant

 

 


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

Product Support Forum  |  Documentation Feedback