The vars inside the UDF have a local scope and are not to be used outside of the UDF. In the UDF header there is an explanation of how it works.
quote:
;RETURNS An array of strings representing all the computers in the domain
;EXAMPLE
for each $computer in COMNetView()
? ''+$computer
next



[ 30. July 2003, 04:32: Message edited by: LLigetfa ]
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.