> You'd have to either convert the argument list from the function to
> <cfargument> tags or you can inject the created function into the cfc
> like this:

What I'm trying is similar to what you suggest:  

<cfcomponent>
<cfscript>
        function myFunc...
        return resultVar
</cfscript>

That method nets "function myFunc not found".

<cfcomponent>
<cffunction name="myFunc">
<cfargument name="myArg" required="Yes">
        <cfscript>
                function myFunc2...
                return resultVar
        </cfscript>
<cfreturn myFunc2(arguments.myArg)>
</cffunction>

That method gets me a "variable myArg is undefined" message, curiously
enough referencing the cfreturn line of code.  It seems the argument passes
muster when it enters the function but can't be called in the return call?



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197205
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to