Quote Originally Posted by wildfrog
Maybe it's even possible to return Nothing. So, when the function fails return Nothing, and when the function succeeds return the array (possibly an empty one).

- petter
Nothing will not work for Arrays in VB 6. Thread1's solution is a better one using Variants.