>I'v already got COMARRAY in there
I've recreated and tested this with the very similar code and in my result the array was fine. Are you sure it gets populated correctly? You may try to create another method for test which will return the array elements one by one to see what's in it.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison