Share

vlax-variant-value (AutoLISP)

Product Documentation
Intermediate

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.


Was this information helpful?