vlax-safearray-fill


(vlax-safearray-fill saVar valuesList)

This function fills the saVar SafeArray with the corresponding elements from valuesList list.

Arguments

saVar  (SafeArray) the SafeArray to be filled with values
valuesList  (list of plain or COM data) list of data to be filled into the SafeArray

Return

the saVar is returned

Example

(setq sa (vlax-make-safearray vlax-vbDouble '(0 . 3)))  #<safearray...>
(vlax-safearray-fill sa '(1.0 2.0 3.0 4.0))  #<safearray...>
(vlax-safearray->list sa)  (1.0 2.0 3.0 4.0)

Remarks

note 1 : valuesList must contain the correct number of elements as defined for the SafeArray saVar by its (lowerBound . upperBound) limits per dimension
note 2 : if saVar SafeArray uses multiple dimensions, each element in valuesList must be a list itself, containing the values for the particular dimension

see (vlax-make-safearray) function



©  Bricsys NV. All rights reserved.