Page 1 of 1 1
Topic Options
#68097 - 2002-07-12 04:03 PM Case INGROUP problem
Anonymous
Unregistered


For some reason, no matter what user I log in with, I keep going to the ecmssped heading of my script. I only have two users in my ecms sp ed teachers group. I have also changed my order and put ecmssped at the bottom of this list, still jumps to ecmssped. Any ideas.

SELECT
CASE INGROUP ("ECMS Sp Ed Teachers")
GOTO "ECMSSped"
CASE INGROUP ("ECMS Teachers")
GOTO "ECMSTeach"
CASE INGROUP ("ECMS Office")
GOTO "ECMSOffice"
CASE INGROUP ("Students")
GOTO "ECMSStudents"
ENDSELECT

Top
#68098 - 2002-07-12 04:09 PM Re: Case INGROUP problem
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Use
code:
$index=0
do
$group=enumgroup($index)
? $group
$index=$index+1
until len($group)=0

in front of your SELECT-CASE statement to print out all the groups the user is a member of.
_________________________
There are two types of vessels, submarines and targets.

Top
#68099 - 2002-07-12 04:10 PM Re: Case INGROUP problem
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Is that heading directly below this code? If so, Put 'CASE 1 ? "No match found"' as the last case to catch what falls through your INGROUP tests. Maybe all of INGROUP tests are failing.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#68100 - 2002-07-12 04:13 PM Re: Case INGROUP problem
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
I would also use GOSUBs instead of GOTOs. This way you do return back into the SELECT-ENDSELECT area.
_________________________
There are two types of vessels, submarines and targets.

Top
#68101 - 2002-07-12 04:29 PM Re: Case INGROUP problem
Anonymous
Unregistered


Thanks for your help. I check my log file and I had the wrong version of kix95.dll and changing that fixed it.
Top
Page 1 of 1 1


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

Who's Online
0 registered and 1188 anonymous users online.
Newest Members
StuTheCoder, M_Moore, BeeEm, min_seow, Audio
17884 Registered Users

Generated in 0.106 seconds in which 0.078 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