Ahh well that does make sense. I tried that and it worked. Also found the following worked the same way:

 Code:
$abc = someudf(1)
For Each $element in $abc
	"element > " + $element ?
Next


Function someudf($somevar)
	ReDim $someudf[3]
	Select
		Case $somevar = 1
			$someudf[0] = "someval"
			$someudf[1] = "someotherval"
			$someudf[2] = "anotherval"
			$someudf[3] = "yetanotherval"
			
		Case $somevar = 2
			$someudf[0] = "differentval"
			$someudf[1] = "differentvalagain"
			$someudf[2] = "anotherval"
			$someudf[3] = "yetanotherval"
					
	EndSelect
EndFunction


Which i suppose has the small advantage of taking one line of code out from each 'case', as the udf i'm making will have about 28 different cases. It's basically to pass the IP address of the machine to the UDF, which returns a bunch of site information.

Thanks for the help =D

Luke


Edited by lukeod (2008-05-13 02:57 AM)