Not even close.

Did you read the FAQ?
How to write a UDF

You are trying to pass a bunch of empty vars expecting them to somehow be returned. That is not how it works.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.