Hi
I don't know if that is possible but why don't you give the pointer as an argument when you call your function?

Gerrit