Thanks Dominic,  I'd forgotten the <cfreturn>

J


-----Original Message-----
From: Dominic Watson [mailto:[EMAIL PROTECTED]
Sent: 03 March 2008 11:28
To: CF-Talk
Subject: Re: CF functions question


>
> I would  I would like to return the structure to the refering page, is
> this possible,
> please?
>

Sure is:

Function code:

<cffunction name="foo" returntype="struct">
 <cfset stBar = StructNew()>
 <cfset stBar.bar = "foo">
 <cfset stBar.foo = "bar">

 <cfreturn stBar>
</cffunction>

Calling template:

<cfset stResult = foo()>

HTH

Dominic

--
Blog it up: http://fusion.dominicwatson.co.uk




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:301396
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to