Same here. The code below worked just fine. CHris, can you send some
sample code?


<cfscript>
function outer(x) {
        return x*2;
}

function inner(x) {
        return x*3;
}

function test(x) {
        return outer(inner(x));
}
</cfscript>

<cfoutput>
#test(2)#
</cfoutput>

=======================================================================
Raymond Camden, ColdFusion Jedi Master for Macromedia

Email    : [EMAIL PROTECTED]
Yahoo IM : morpheus

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

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, June 06, 2002 8:07 AM
> To: CF-Talk
> Subject: Re: CFMX, UDF and CF Functions
> 
> 
> Chris,
> 
> I do this all the time in CFMX with no problems.  What 
> happens when you 
> push this <CFSet x = val(myUDF('this'))> into a <cfscript> 
> block?  Also, 
> is myUDF readily available on the page via include, etc?
> 
> <cfscript>
> x = val(myUDF('this'));
> </cfscript>
> 
> I'm not saying that this will fix anything, it's just 
> something for you to 
> try.  Could you post the code that you're using for myUDF?  Perhaps 
> there's something going on within?
> 
> ~Todd
> 
> On Thu, 6 Jun 2002, Christopher P. Maher wrote:
> 
> > I have found that if you try to call a user defined 
> function inside a CF
> > function, that it works in CF5 but in CFMX you get an error.
> > 
> > Example:
> > 
> > <CFSet x = val(myUDF('this'))>
> > 
> > This will work in CF5 but not CFMX. The error occurs on the 
> CFInclude line
> > that calls this template. The message suggests that the 
> method myUDF does
> > not exist.
> > 
> > It will work find if I change this to:
> > <CFSet y = myUDF('this')>
> > <CFSet x = val(y)>
> > 

______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
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