Returns the data type of a safearray
(vlax-safearray-type var)
Arguments
A variable containing a safearray.
Return Values
If var contains a safearray, one of the following integers is returned:
vlax-vbInteger)
2 Integer (vlax-vbLong)
3 Long integer (vlax-vbSingle)
4 Single-precision floating-point number (vlax-vbDouble)
5 Double-precision floating-point number (vlax-vbString)
8 String (vlax-vbObject)
9 Object (vlax-vbBoolean)
11 Boolean (vlax-vbVariant)
12 Variant (If var does not contain a safearray, an error results.
Examples
Create a single-dimension array of doubles and a two-dimension array of strings:
_$ (setq point (vlax-make-safearray vlax-vbDouble '(0 . 2)))
#<safearray...>
_$ (setq matrix (vlax-make-safearray vlax-vbString '(1 . 2) '(1 . 2) ))
#<safearray...>
vlax-safearray-type to verify the data type of the safearrays:
Use_$ (vlax-safearray-type point)
5
_$ (vlax-safearray-type matrix)
8
vlax-make-safearray function.
The