>Sorry Jim. But I do not get what this function does and what it returns.
>What array is passed to object?
Alex,
COMARRAY() does NOT pass an array to an object, it sets the format for arrays that may be apssed to the object. It controls the method VFP uses to pass arrays to the COM object referenced. It returns the setting, with a nNewValue supplied it will be the enw setting and if the nNewValue is not supplied it is the current setting.