It should. And to be certain I threw it on my server. It does. The
problem you and Tony are experiencing is definitely not in code.

Adam Wayne Lehman
Web Systems Developer
Johns Hopkins Bloomberg School of Public Health
Distance Education Division


-----Original Message-----
From: Bryan F. Hogan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 20, 2003 6:44 PM
To: CF-Talk
Subject: Re: CFC Issues....

So the following should work?

<cfcomponent>
    <cffunction name="checkEmail" returntrype="boolean">
        <cfargument name="emailAddress" type="string" required="true">
        <cfif Len(Arguments.emailAddress)>
            <cfset myReturn=true>
        <cfelse>
            <cfset myReturn=false>
        </cfif>
        <cfreturn myReturn>
    </cffunction>

    <cffunction name="emailMembers">
        <cfargument name="emailAddress">
        <cfreturn checkEmail(Arguments.EmailAddress)>
    </cffunction>
</cfcomponent>

Abviously this is not a usable example it just illistrates what I'm
talking
about.

By creating a UDF inside a cfc and trying to use it in the same cfc I
get
the exact same error that Tony gets with any UDF.

----- Original Message ----- 
From: "Raymond Camden" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, August 20, 2003 5:32 PM
Subject: RE: CFC Issues....


> My blog entry talked about creating a UDF _inside_ a method, this is
NOT
> the same as creating a UDF in a CFC. For example:
>
> <cfcomponent>
>
> <cfscript>
> function boring() { return now(); }
> </cfscript>
>
> <cffunction name="foo">
> <cfreturn boring()>
> </cffunction>
>
> </cfcomponent>
>
> This is perfectly valid. The only issue is that EVERY UDF defined,
even
> cfscript ones, are considered methods. So "boring" will show up in the
> metadata. In general, you do not want to use cfscript, instead, use
> cffunction and mark the udfs as private so they can't be called from
the
> outside.
>
>
========================================================================
> ===
> Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> (www.mindseye.com)
> Member of Team Macromedia
(http://www.macromedia.com/go/teammacromedia)
>
> Email    : [EMAIL PROTECTED]
> Blog     : www.camdenfamily.com/morpheus/blog
> Yahoo IM : morpheus
>
> "My ally is the Force, and a powerful ally it is." - Yoda
>
> > -----Original Message-----
> > From: Bryan F. Hogan [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, August 20, 2003 3:10 PM
> > To: CF-Talk
> > Subject: RE: CFC Issues....
> >
> >
> > I have always recieved this same problem while trying to
> > create a UDF and use a UDF in the same CFC. I thought that it
> > wasn't allowed. See this entry:
> > http://www.camdenfamily.com/morpheus/blog/index.cfm?mode=entry
> > &entry=130
> > from Ray.
> >
> >
> > -----Original Message-----
> > From: Sean A Corfield [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, August 20, 2003 3:50 PM
> > To: CF-Talk
> > Subject: Re: CFC Issues....
> >
> >
> > Show us yer code Weeg!! :)
> >
> > On Wednesday, Aug 20, 2003, at 10:30 US/Pacific, Tony Weeg wrote:
> >
> > > what could this possibly mean?
> > >
> > > the code works perfect outside of the cfc, but now it
> > doesn't inside
> > > the cfc?
> > >
> > > Unable to complete CFML to Java translation.
> > > Error information unsupported statement: class
> > > coldfusion.compiler.ASTfunctionDefinition
> > >
> > > The error occurred in
C:\Inetpub\wwwroot\cf~permissionsConsume.cfm:
> > > line
> > > 15
> > >
> > > 13 :   <cfinvokeargument
> > > 14 :     name="featureBit"
> > > 15 :     value="#featureBit#">
> > > 16 :
> > > 17 : </cfinvoke>
> > >
> > >
> > >
> > >
> >
----------------------------------------------------------------------
> > > -
> > > -
> > > --------
> > >
> > > Please try the following:
> > > Check the ColdFusion documentation to verify that you are using
the
> > > correct syntax. Search the Knowledge Base to find a
> > solution to your
> > > problem.
> > >
> > >
> > > Browser   Mozilla/4.0 (compatible; MSIE 6.0; Windows NT
> > 5.1; .NET CLR
> > > 1.1.4322)
> > > Remote Address   10.10.11.186
> > > Referrer
> > > Date/Time   20-Aug-03 01:29 PM
> > >
> > > Stack Trace (click to expand)
> > >
> > >
> > > tony weeg
> > > uncertified advanced cold fusion developer
> > > tony at navtrak dot net
> > > www.navtrak.net
> > > office 410.548.2337
> > > fax 410.860.2337
> >
> >
> >
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Reply via email to