vlax-variant-value
 
 
 

Returns the value of a variant

(vlax-variant-value var)

Arguments

var

A variable whose value is a variant.

Return Values

The value of the variable. If the variable does not contain a variant, an error occurs.

Examples

_$ (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