> <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?

Well this syntax is invalid -- if your psuedocode is accurate... You
can't declare a function within a function. Or that was what I thought
-- ECMAScript allows this, but not CFScript that I'm aware. It's
possible that the CFML parser could be not noticing the fact that
there's a function declared inside a function and so the content of
the inner function is never being executed... although in that case I
would expect it to return the argument unmodified... You're also
returning twice, although that would just mean the <cfreturn> tag
isn't used / redundant.

But in any event, it might be easier for us to help out if you provide
an actual section of the CFC with the whole function code in it as
you're trying to use it.

s. isaac dealey     954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://macromedia.breezecentral.com/p49777853/
http://www.sys-con.com/story/?storyid=44477&DE=1
http://www.sys-con.com/story/?storyid=45569&DE=1
http://www.fusiontap.com


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197211
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to