I'm having trouble using the GetGroups UDF. The two dimensional array seems to be throwing me off.

 Code:
$START = @TICKS
$Groups = GetGroups("somehosp", @wksta + "$$",1)

for each $Groups[0,$x] in $groups
? $Groups[0]
next

? "Lookup Finished"
? "Elapsed = " + (@TICKS - $START)
get $x


Basically, I want only the groups returned, not the group type. How exactly do I do that? I'm going to do a SELECT...CASE..ENDSELECT once I get the Groups returned.