Returns the value of a variant
(vlax-variant-value var)
The value of the variable. If the variable does not contain a variant, an error occurs.
_$ (vlax-variant-value varstr)
"ghost"
_$ (vlax-variant-value varint)
5
_$ (vlax-variant-value notvar)
; *** ERROR: bad argument type: variantp 6.0
The last example results in an error, because notvar does not contain a variant.
See Also
-
The vlax-make-safearray and vlax-make-variant functions.