No $remotepc is a parameter and should not be dimmed Mart.

Perhaps whatever you called your var when you called the UDF?