This leads me to make this statement:

"If you place CFLOCK around a call to a UDF, all of the variables used
within the UDF are subsequently locked."

Is this statement correct?

<cfscript>
        function getFooStruct() {
                return Session.fooStruct;       
        }
</cfscript>

<cflock scope="Session" type="ReadOnly" 
        timeout="#Request.sessionLockTimeout#">
        <cfdump var="#getFooStruct()#">
</cflock>

--
Scott Van Vliet
Sempra Energy
555 W. 5th St., 21st Floor
Los Angeles, CA 90013
Tel > 213.244.5205
Email > [EMAIL PROTECTED]

"Hello Stupid, and welcome to your crappy computer."
- Strong Bad, HomestarRunner.com






> -----Original Message-----
> From: Dave Watts [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 25, 2002 9:50 AM
> To: CF-Talk
> Subject: RE: Can I lock variables inside a UDF?
> 
> 
> > I recieve and error within this segment.
> > 
> > <cfscript>
> > function PrintHeader()  {
> > 
> > var TopMenu = "";
> > var Header = "";
> > 
> > <cflock timeout="30" ...
> 
> You can't use any CFML tags within a CFSCRIPT block. Further, 
> there's no
> functional equivalent to the CFLOCK tag.
> 
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> voice: (202) 797-5496
> fax: (202) 797-5444
> 
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to