Remember to var your variables!
On Mon, Mar 3, 2008 at 4:27 AM, Dominic Watson < [EMAIL PROTECTED]> wrote: > Function code: > > <cffunction name="foo" returntype="struct"> > <cfset stBar = StructNew()> > <cfset stBar.bar = "foo"> > <cfset stBar.foo = "bar"> > > <cfreturn stBar> > </cffunction> > should be: <cffunction name="foo" returntype="struct"> <cfset var stBar = StructNew()> <cfset stBar.bar = "foo"> <cfset stBar.foo = "bar"> <cfreturn stBar> </cffunction> -- nathan strutz http://www.dopefly.com/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300319 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

