Purpose |
|
Syntax |
numericvar = VARIANT#(vrntvar) |
Remarks |
The value returned by VARIANT# may be any range from BYTE to DOUBLE/QUAD/CURRENCY, depending upon the internal representation used within the Variant. While Variant variables, by definition, do not offer
support for Extended
Precision Float data types, you should note that it is possible for
a QUAD or CURRENCY value to exceed the precision level offered by a DOUBLE.
You should therefore use some judgement in deciding on the
|
Restrictions |
VARIANT# presumes that a valid numeric value is present (not an array); otherwise, the value zero is returned. |
See also |
|
Example |
DIM vVnt AS VARIANT vVnt = 999& a& = VARIANT#(vVnt) |