The code below is part of the GetGroups UDF in the UDF Library.
This set an array of the names of the types of groups. They are positioned in the array such that the index represents the grouptype value. (You will see this later)
code:
Dim $Type[8]
$Type[2] = "GLOBAL_GROUP"
$Type[4] = "LOCAL_GROUP"
$Type[8] = "UNIVERSAL_GROUP"
This code gets the name and grouptype values using COM. The grouptype value is used as the index while referencing the $Type array. This will set the group type TEXT from above into your $GroupType variable.
code:
$GroupName = $group.Name
$GroupType = $Type[$group.groupType]
Does this help or do I need to explain further?
[ 13. November 2002, 18:08: Message edited by: Howard Bullock ]