This should work.

<cffunction name="param" returntype="boolean">
        <cfargument name="varName" type="any" required="Yes">
        <cfargument name="varValue" type="any" required="Yes">
        <cfparam name="#varName#" default="#varValue#">
</cffunction>


<cfscript>
param("foo", "bar");
param("moo", "cow");
</cfscript>

-- 
 jon
 mailto:jonhall@;ozline.net

Thursday, October 31, 2002, 2:59:58 PM, you wrote:
PR> I need to set a bunch of param's in CFMX and I would prefer to do it inside of a 
CFSCRIPT block.  Is this possible?  I tried a UDF on cflib.org but it didn't 
work...and I thought there was
PR> probably a simpler way anyway.

PR> Thanks

PR> Pete

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
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

Reply via email to