>>Your FOR EACH...ENDFOR creates and uses its own copy of the lo var, not the one from your Local declaration.
>
>Huh? That doesn't make sense. If you fail to declare the variable as local, it will be private. Nothing more.
Duh, I don't know what I was thinking.
You are correct, but I have experienced something similar to his orignial two examples before.
The second method where the hit is being returned via a separate memory variable solved the problem. The lo variable was not an object when the exit from the FOR EACH occured.
Tom
Life happens, don't blink.