What I have is a group in the NAB with a list of special units.In the initialize section, I place the members of group in MLList. I have 41 entries there confirmed.
As I process a larger list of units, I need to handle these special ones differently than the rest. So, I want to check the MLList to see if doc.nUnit(0) is contained in it.So I use
ArrayGetIndex(MLList, nUnit(0)). The first one on the list is the first member of MLList or (0). So, a check on the value of MLNdx just before the stmt shows it to have a value of 0.
The next stmt to check MLNdx stops running and displays the error message, invalid use of NULL.
Esther said to check the array. I was using error checking and a debug log. When I created the list, i had it dim ed as a variant and then gave it the value of group.members. I used a loop instead, dim it as a string and redimed it in the loop and that seemed to make the array work.
Thanks to all for your help. I have been working on this one line for a day.