This is a known issue - and there may even be a KB for it. In you want
to define a UDF in a custom tag that is used in begin/end notation, you
must place the UDF in another file and cfinclude it. That should work
for you.

=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email    : [EMAIL PROTECTED]
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Alexander "just me" Apartsev [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, January 16, 2002 12:33 PM
> To: CF-Talk
> Subject: udf in a complex custom tag
> 
> 
> Hi!
> 
> I am trying to declare an UDF in a custom tag:
> 
> <CFIF ThisTag.ExecutionMode Is "start">
>     <cfscript>
>             function myfunc() { return true; }
>     </cfscript>
> .. etc.
> </CFIF>
> 
> This throws "The routine test has been declared twice in different
> templates".
> 
> If the tag has no end tag, no error is thrown; I need an end 
> tag, though,
> because there are child tags.
> 
> Any ideas?
> 
> Thanks in advance
> 
> Alexander
> 
______________________________________________________________________
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
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