I'm struggling with implementing CFLOCK so it runs on BOTH CF 4.0.1 and 4.5.1. (The 
4.5.1 server has FULL CHECKING on.) 

Given that 4.0.1 FORBIDS the SCOPE parameter in CFLOCK and 4.5.1 REQUIRES it, 
I thought I'd do a check for which version of CF was running and stash the appropriate 
CFLOCK parameters into a local variable. For example, if CF 4.5.1 or better, I'd set 
the 
parameter var to be equal to 'SCOPE="Application" TYPE="Exclusive"', etc.

So my CFLOCK would look like this:

<CFLOCK #VersionSpecificParameter#>
code...>
</CFLOCK>

But... CF throws an error on the pound sign, apparently not allowing the specification 
of parameters via variable.

Any ideas besides repeating the entire CFLOCK block for each version?

Gene Kraybill
---------------------------------
Gene Kraybill
LPW & Associates LLC
www.lpw.net

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to