i have found a litle problem. I use MZTools to add more features to VB6. If MZTools DLL is registered, ArrayReport returns "ByReF argument type mismatch". If i unregister MZTools, the same code works fine.