Then try: <CFIF FINDNOCASE(session.strFileName,session.ShowMe,1) GT 0>
This will just look for an instance of session.strFileName within the session.ShowMe variable. >>> [EMAIL PROTECTED] 12/02/02 11:24AM >>> Actually, the session.strFileName would have no path in it. sesion.strFileName = Temp sesion.ShowMe = D:\Temp,D:\Test On Mon, 02 Dec 2002 11:11:43 -0500, Randell B Adkins wrote: > <CFIF LISTCONTAINSNOCASE(session.ShowMe,session.strFileName)> > > I think this is what you are asking. > sesion.strFileName = D:\Temp > sesion.ShowMe = D:\Temp,D:\Test > > then the above CFIF statement should return TRUE > > > >>> [EMAIL PROTECTED] 12/02/02 11:08AM >>> > Hi, > > I have session variable that contains the directory name > "session.strFileName". I also have another session variable > "session.ShowMe" that contains multiple directory names > (comma-delimited) which i'm setting from my database. Basically, i need > to check if the directory "session.strFileName" exists in the variable > "session.showme". > > Example: > > session.strfilename = 'mywork' > > session.showme = > 'c:\temp\dir1,c:\temp\dir2,c:\temp\mywork,c:\temp\mywork2' > > > > --------------------------------------------------- > Colonel Nathan R. Jessop > Commanding Officer > Marine Ground Forces > Guatanamo Bay, Cuba > --------------------------------------------------- > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.