I've done some more testing with this and the problem is not calling a UDF
in a built in function as I thought. It is using a UDF in a CFLoop
attribute.

This will not work in MX but does in CF5.

<CFScript>
function times2(n) {
        if (IsNumeric(n))
                return 2 * n;
        else
                return "";
        }
</CFScript>

<CFLoop index="i" from="1" to="#times2(10)#">
        <CFOutput><li>#i#</li></CFOutput>
</CFLoop>

The error I get is on the CFLoop line and it says Method "times2" with one
arguments is not in class coldfusion.runtime.CFPage"

Yes I do know that having a function as a loop attribute isn't a good idea.

Thanks,

Chris

------------------------------------
Christopher P. Maher, FCAS, MAAA
Modotech, Inc.
[EMAIL PROTECTED]
http://www.modotech.com


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