Value property (NumericDisplay and StringDisplay objects)
Returns the value that is shown in the display field. Read-only. Variant.
This is the default property of the NumericDisplay and StringDisplay objects.
An Error value is returned by a wire-framed NumericDisplay or StringDisplay object. When the object goes wire frame, the Change event is fired. The IsError() VB function can be used to check if the value is in error.
Syntax
object
.Value
where
object
– is the name of a NumericDisplay or StringDisplay object or an expression that evaluates to a NumericDisplay or StringDisplay object.Example
Private Sub NumericDisplay1_Change() If IsError(NumericDisplay1.Value) Then Application.LogDiagnosticsMessage "NumericDisplay1.Value = " & NumericDisplay1.Value End If End Sub
Provide Feedback