True. My apologies, I'm having a BAAAAAAD day....

-----Original Message-----
From: Raymond Camden [mailto:[EMAIL PROTECTED]]
Sent: 24 May 2001 14:14
To: CF-Talk
Subject: RE: Lock me up!



The CFLOCK tag beelow should use TYPE="ReadOnly" since you are only copying,
not writing to the App scope. By default CFLOCK is Exclusive.

Ray Camden

> <cftry>
>       <cflock scope="APPLICATION" timeout="2" throwonerror="YES">
>               <cfset VARIABLES.CatName =
> APPLICATION.cats[url.catid].catNAME>
>               <cfset VARIABLES.SubCats = APPLICATION.SubCats>
>       </cflock>
>
>       <cfcatch type="ANY">
>               <!--- Display a message --->
>               <cfexit method="EXITTEMPLATE">
>       </cfcatch>
> </cftry>
>
> <cfoutput>
>       #VARIABLES.CatName#
>
>       <!--- Your PURE HTML --->
>       <cfloop index="i" from="1" to="#ArrayLen(VARIABLES.subcats)#">
>               <!--- More pure HTML --->
>       </cfloop>
>
> </cfoutput>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to