if you just run the code:
code:
$=-1
do $=$+1
$f=enumgroup($) ? $f
until $f=""

you will get the idea.
the array of the groups is allways retrievable with enumgroup.

but if you don't have menu selection for all groups you could just use ingroup to make your menu.
code:
if ingroup("domain admins")
$menulist=$menulist+",Administrators"
....
endif

this way you evaluate all groups you want. not all groups the user might be in.

then, making the menu would be:
code:
$menulist=split($menulist,",")
for $c=1 to ubound($menulist)
? $c "." $menulist[$c]
next

I think it's pretty much easier with ingroup.
anyway, with enumgroup you probably would need to play with some sort of array.

cheers.
_________________________
!

download KiXnet