Here i go again.
Thanks for the replies boys. I am using Nt NTDOC. I know this is not very typical or common but my idea was to bring array groups to a combo and onClick() show the users in another combo.
I will apply it to choose a group, then choose a user, then send message or whatever.
This works so far it might not look tidy but does.
Surely there is an easy way, I dont know.

code:
;bring the array containing all the groups and load it into the combo
$object = GetObject("WinNT://$dominio,domain")
$object.filter = "group",""
For Each $group In $object
$name = $group.Name
$ComboGrupo.ADDITEM("$name")
Next

;load the user combo according to the group chosen
Function ComboGrupo_Click()
$ComboUsuario.CLEAR
$GroupSelected=$ComboGrupo.TEXT
$members = groupmembers("$domain","$GroupSelected")
For Each $ITEM IN $members
$ComboUsuario.ADDITEM("$ITEM")
Next
EndFunction

Thanks very much for the answer.....again [Big Grin]

[ 04. February 2003, 20:04: Message edited by: jose3 ]
_________________________
Life is fine.