The following code throws an error...
<cffunction name="execRulesetDetailed"
access="remote"
returntype="query"
displayname="Execute Rule Set (Simple Mode)"
output="yes"
>
<cfargument name="RulesetID"
type="string"
required="yes"
displayname="Ruleset ID">
<cfargument name="fields"
type="struct"
required="yes"
displayname="Fields">
<!--- Get Ruleset --->
<CFSCRIPT>
var rs = getruleset(arguments.rulesetID);
var ff = duplicate(arguments.fields);
var qry_results = querynew("Result,ruleID,description");
</CFSCRIPT>
-----Original Message-----
From: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 02, 2003 9:14 AM
To: CF-Talk
Subject: RE: CFFUNCTION and VAR's
Just like var in script statements have to be 'on top', the same applies
to var scoped variables in CFFUNCTION style UDFs. Simply place them
after your <cfargument> tags and before any line of 'real' code.
========================================================================
===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
(www.mindseye.com)
Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)
Email : [EMAIL PROTECTED]
Blog : www.camdenfamily.com/morpheus/blog
Yahoo IM : morpheus
"My ally is the Force, and a powerful ally it is." - Yoda
> -----Original Message-----
> From: Rich Z [mailto:[EMAIL PROTECTED]
> Sent: Saturday, August 02, 2003 7:00 AM
> To: CF-Talk
> Subject: CFFUNCTION and VAR's
>
>
> I understand the importance of VARing variables created for
> function purposes - but I'm not getting where they belong in
> the grand scheme of things. I'm fine w/ the UDF/cfscript
> style, it's the tag-based CFFUNCTION style that's tripping me up.
>
> Does it belong before or after CFARGUMENT's? Can they be
> created in the middle of the function code somewhere?
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at
http://www.coolfusion.com
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4