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)>
> 
> I have not seen this discussed anywhere in the Macromedia forums or in the
> release notes. The utility that checks your CF5 code for problems does not
> flag it.
> 
> Anyone have some insight on this one?
> 
> Thanks,
> 
> Chris
> 
> ------------------------------------
> Christopher P. Maher, FCAS, MAAA
> Modotech, Inc.
> [EMAIL PROTECTED]
> http://www.modotech.com
> 
> 
______________________________________________________________________
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