Page 1 of 1 1
Topic Options
#176098 - 2007-05-08 03:25 PM GetGroups UDF Usage?
tylan Offline
Starting to like KiXtart

Registered: 2005-11-17
Posts: 115
Loc: Johnstown, PA
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.

Top
#176099 - 2007-05-08 03:32 PM Re: GetGroups UDF Usage? [Re: tylan]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
I'm using the UserGroups() UDF for this. It works simple and great.

 Code:
Break on

$groups = UserGroups(@domain,@userid)
For Each $group in $groups
	?$group
Next

Sleep 3


UserGroups() - returns all groups of a given user


Edited by Mart (2007-05-08 03:32 PM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#176101 - 2007-05-08 03:49 PM Re: GetGroups UDF Usage? [Re: Mart]
tylan Offline
Starting to like KiXtart

Registered: 2005-11-17
Posts: 115
Loc: Johnstown, PA
Works like a charm. Thanks.

Also, When you add a post to your watch list, should I get an email every time someone replies? I've went into my preferences and I still can get any emails out of this message board.

Top
#176103 - 2007-05-08 03:53 PM Re: GetGroups UDF Usage? [Re: tylan]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
I don’t know. Never added anything to my watched topics/forums and users.
There is a radio button you can use to get e-mail about watched topic/forums and users.


Edited by Mart (2007-05-08 03:55 PM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#176108 - 2007-05-08 04:05 PM Re: GetGroups UDF Usage? [Re: Mart]
tylan Offline
Starting to like KiXtart

Registered: 2005-11-17
Posts: 115
Loc: Johnstown, PA
I have it all turned on. I may have to post this in one of the general forums.
Top
#176109 - 2007-05-08 04:11 PM Re: GetGroups UDF Usage? [Re: tylan]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Lounge » UBB Threads - Feedback & Suggestions
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 584 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.059 seconds in which 0.027 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org