Actually, the biggest difference is rather looping over the number of items
in the list, then using ListGetAt to get the element, my code loops over the
list itself.  This is going to be quicker on larger lists.

Besides, if I didn't play with your code, I'd have to do real work :)>

Chris Evans
[EMAIL PROTECTED]
http://www.fuseware.com


-----Original Message-----
From: Ang�l Stewart [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 14, 2000 1:48 PM
To: [EMAIL PROTECTED]
Subject: Re: My solution:Variable IN a list? How to check?


Oh.
Right.
the NOT keyword.

I'm going to rewrite the security code on all the pages to reflect this..
...
...
...
Not..:-)
-Gel
p.s.
All jokes aside, thanks a lot for replying and giving an alternate solution.
I really don't recall why I didn't use NOT, instead of EQ 0 :-)

----- Original Message -----
From: Chris Evans <[EMAIL PROTECTED]>

> I may be missing a pice of logic, but this may work a little better:
>
> <!--- SECURITY CODE ---->
>
> <CFIF IsDefined('DeptID')>
>  <CFLOOP List="form.DeptID" INDEX="x">
>   <cfif NOT ListContains(session.currentprivileges,x)>
>      <cflocation url="#noclearance#" addtoken="yes">
>   </CFIF>
>  </CFLOOP>
> </CFIF>
>
> <!--- End SECURITY CODE ---->


----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.


------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to