You can also just do isdefined('doTocOption') to see if the function has
been created.
Brook
At 12:39 PM 7/21/2004, you wrote:
>Shouldn't you be doing this?
>
><cfif NOT isFunction("doTocOption")>
><cfscript>
> function doTocOption(myQuery, contextFilePrefix) {
> ...
> }
></cfscript>
></cfif>
>
>or
>
><cfif NOT isCustomFunction("doTocOption")>
><cfscript>
> function doTocOption(myQuery, contextFilePrefix) {
> ...
> }
></cfscript>
></cfif>
>
>Qasim
>
>----- Original Message -----
>From: Jamie Jackson <[EMAIL PROTECTED]>
>Date: Wed, 21 Jul 2004 14:12:24 -0400
>Subject: Re: UDF within a Custom Tag
>To: CF-Talk <[EMAIL PROTECTED]>
>
>On Wed, 21 Jul 2004 13:29:40 -0400, in cf-talk you wrote:
>
> >What about using isCustomFunction() or isFunction from
> >http://cflib.org/udf.cfm?ID=286
> >
> >Qasim
>
>I just tried your suggestion, and it behaved the same as if I didn't
>have the conditional in there at all:
>
><cfif NOT isFunction("doTocOptionIsDeclared")>
><cfscript>
> function doTocOption(myQuery, contextFilePrefix) {
> ...
> }
></cfscript>
></cfif>
>
>The error associated with the above is:
>"Routines cannot be declared more than once.
>
>The routine doTocOption has been declared twice in different
>templates."
>
>Thanks for the reply,
>
>Jamie________________________________
>
>----------
>[<http://www.houseoffusion.com/lists.cfm/link=t:4>Todays Threads]
>[<http://www.houseoffusion.com/lists.cfm/link=i:4:171584>This Message]
>[<http://www.houseoffusion.com/lists.cfm/link=s:4>Subscription]
>[<http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=905.825.4>Fast
> Unsubscribe] [<http://www.houseoffusion.com/signin/>User Settings]
>[<https://www.paypal.com/cgi-bin/webscr?amount=&item_name=House+of+Fusion&business=donations%40houseoffusion.com&undefined_quantity=&cmd=_xclick>Donations
>and Support]
>
>----------
><http://www.houseoffusion.com/banners/view.cfm?bannerid=37>
>[]
>
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
- RE: UDF within a Custom Tag Kola Oyedeji
- Re: UDF within a Custom Tag Jamie Jackson
- RE: UDF within a Custom Tag Robertson-Ravo, Neil (RX)
- Re: UDF within a Custom Tag Jamie Jackson
- Re: UDF within a Custom Tag Ben Doom
- Re: UDF within a Custom Tag Jamie Jackson
- Re: UDF within a Custom Tag Jamie Jackson
- Re: UDF within a Custom Tag Qasim Rasheed
- Re: UDF within a Custom Tag Jamie Jackson
- Re: UDF within a Custom Tag Qasim Rasheed
- Re: UDF within a Custom Ta... Brook Davies
- Re: UDF within a Custo... Claude Schneegans
- Re: UDF within a Custo... Jamie Jackson
- Re: UDF within a Custom Ta... Jamie Jackson
- Re: UDF within a Custom Tag Claude Schneegans
- Re: UDF within a Custom Ta... Jamie Jackson
- Re: UDF within a Custo... Raymond Camden
- Re: UDF within a Custo... Jamie Jackson
- Re: UDF within a Custo... Raymond Camden
- CF Hack Paul Wilson
- RE: CF Hack Sandy Clark