Returns the elements of a safearray in list form
(vlax-safearray->list var)
Create a single-dimension array of doubles:
_$ (setq point (vlax-make-safearray vlax-vbDouble '(0 . 2)))
#<safearray...>
Use vlax-safearray-put-element to populate the array:
_$ (vlax-safearray-put-element point 0 100)
100
_$ (vlax-safearray-put-element point 1 100)
100
_$ (vlax-safearray-put-element point 2 0)
0
_$ (setq pointlist (vlax-safearray->list point))
(100.0 100.0 0.0)
The following example demonstrates how a two-dimension array of strings is displayed by vlax-safearray->list:
_$ (vlax-safearray->list matrix)
(("a" "b") ("c" "d"))
See Also
-
The vlax-make-safearray, vlax-safearray-fill, and vlax-safearray-put-element functions.