vlax-safearray-put-element


(vlax-safearray-put-element saVar index1 [ index2 [ index3 ... ] ] ] value)

This function assigns value to the saVar SafeArray at index specified by index1, index2, index3 ...

Arguments

saVar  (SafeArray) the SafeArray to assign the indexed value to
index1  (integer)  the index for the first dimension
index2  (integer, optional)  the index for the second dimension
index3  (integer, optional)  the index for the third dimension
:
value  (any suitable Lisp or COM data item)  the value to be assigned

Return

the value argument

Example

(setq sa (vlax-make-safearray vlax-vbDouble '(0 . 1) '(0 . 2)))  #<safearray...>
(vlax-safearray-fill sa '((1.0 2.0 3.0) (10.0 11.0 12.0)))  #<safearray...>
(vlax-safearray-get-element sa 1 2)  12.0
(vlax-safearray-put-element sa 1 2 99)  99
(vlax-safearray-get-element sa 1 2)  99.0

Remarks

see (vlax-make-safearray) function



©  Bricsys NV. All rights reserved.