Page 1 of 1 1
Topic Options
#136689 - 2005-03-29 07:52 PM InGroup Question
ElGuapo Offline
Starting to like KiXtart

Registered: 2002-06-19
Posts: 100
KiXtart 4.12 shows using ingroup with quotes. P.72:

IF INGROUP("Domain Users")
Display "z:\users.txt"
ENDIF

IF INGROUP("Developers","Testers") = 1
? "Member of Developers OR Testers group"
ENDIF

I have read posts that say not to use quotes with INGROUP. Which is correct? Does it make a difference?

Top
#136690 - 2005-03-29 08:09 PM Re: InGroup Question
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11631
Loc: CA
Please show me where that is said? When using a variable you don't want quotes around it.

i.e.
$TestGroup="Administrators"
If InGroup($TestGroup) ; requires no quotes
Otherwise it would be

If InGroup("Administrators")
or
If InGroup('Administrators')

Also, prefacing the Domain makes it faster easier for KiX to locate
If InGroup("SomeDomain\Administrators")

Top
#136691 - 2005-03-30 04:27 PM Re: InGroup Question
ElGuapo Offline
Starting to like KiXtart

Registered: 2002-06-19
Posts: 100
Thank you for the clarification.
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 931 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.05 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

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