well that function is technically not even sytactically correct since there is no return type, and it doesn't even return a value. Its basically a Sub Routine... (he must not have option strict on)

I guess we need to hear from the poster to hear more about the actual structure of this code... otherwise we are just making educated guesses...