Ah! Thanks much. I've got work to do. Heh. -----Original Message----- From: Raymond Camden [mailto:[EMAIL PROTECTED] Sent: Saturday, August 02, 2003 11:59 AM To: CF-Talk Subject: RE: CFFUNCTION and VAR's
Crrect, since cfscript is considered a tag of code so to speak. You must use this format: <cfset var foo = goo> ======================================================================== === 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 9:54 AM > To: CF-Talk > Subject: RE: CFFUNCTION and VAR's > > > 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 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 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4