Signature (Visual Basic / VBA)
Public Function CanBeDouble( _
ByVal vValue As Variant _
) As Boolean
Code Example
CanBeDouble(34) = True
CanBeDouble(1234.56) = True
CanBeDouble(#12/31/95#) = True
CanBeDouble("1") = True
CanBeDouble("1E1000") = False
CanBeDouble("A word.") = False
Parameters
| Parameter | Description |
|---|---|
| vValue | The argument which is checked to see if it can be converted to a Double value. Function returns True if vValue contains a numeric value, a date, or a numeric string value which is within the range of values supported by the Double data type. Function returns False otherwise, such as if vValue is out-of-range, Null, an error, or an object pointer. |