Hello jfournier,
Thanks very much for your reply. I had tried the above procedure and I am having some difficulties to make it to work. It seems the issue is with the declaration or the references that I have setup. Do you have the declaration portion prior to calling the function?
Thanks,