Pete, you are right concerning <cfscript> but I can't see the limitations regarding UDFs.
A UDF pre se is meant to be self-contained and therefore not relying on anything outside it's own scope. Wouldn't the use of shared data inside a UDF be defeating this purpose? You could read a shared scope variable into a local variable and get that into the UDF do what ever you do and than return a new value, write that value into your shared data. Birgit Thursday, November 01, 2001, 12:34:02 AM, you wrote: PF> Nope. It's a big limitation for CFSCRIPT and UDF's PF> +++++++++++++++++++++++++++++++++++++++++++++ PF> Pete Freitag ([EMAIL PROTECTED]) PF> CFDEV.COM PF> ColdFusion Developer Resources PF> http://www.cfdev.com/ PF> -----Original Message----- PF> From: James Sleeman [mailto:[EMAIL PROTECTED]] PF> Sent: Thursday, November 01, 2001 12:30 AM PF> To: CF-Talk PF> Subject: locking within CFSCRIPT PF> Hi all, PF> I have a situation where I would like to write a UDF to perform PF> the same task as a custom tag does at the moment, problem is I need to be PF> able to perform locking operations in the UDF. Are there functions, say PF> lock() and unlock() that can do the same function as <CFLOCK></CFLOCK> PF> within a CFSCRIPT block ? PF> ---------- PF> James Sleeman PF> Innovative Media Ltd PF> Phone: (03) 377 6262 PF> http://www.websolutions.co.nz/ PF> CAUTION: The information contained in this email message is confidential PF> and may be legally privileged. If the reader of this message is not the PF> intended recipient you are notified that any use, dissemination, PF> distribution or reproduction of this message is prohibited. If you have PF> received this message in error please notify the sender immediately and PF> destroy the original message and any attachments. PF> Views expressed in this communication may not be those of Innovative Media PF> Ltd. PF> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists