<cffunction name="someFunction" ...>
<cfargument name="foo" ... >
<cfset var result = structNew() >
<cfset var cfhttp = 0 >
<cflock name="CFHTTP" ... >
<cfhttp .... >
</cfhttp>
</cflock>
<cfscript>
result.someKey = "foo";
.... do other stuff with result ...
result.fileContent = cfhttp.fileContent;
return result;
</cfscript>
</cffunction>
-Phil
On 5/30/05, Sean Corfield <[EMAIL PROTECTED]> wrote:
On 5/30/05, Jared Rypka-Hauer - CMG, LLC <[EMAIL PROTECTED]> wrote:
> For those on 6.1, what can't you var-declare?
This post captures most of the information (and refers to another post
on Christian's blog that covers the same topic):
http://www.corfield.org/blog/index.cfm?do=blog.entry&entry=E0815825-A540-CCDD-7F3105958EE9B3D1
Note that in the comments it clarifies that you cannot do this for cfcatch!
> My tests have shown that it works for cfhttp and cffile, which are the 2
> primary ones off the top of my head.
See the post above for further notes on cffile.
--
Sean A Corfield -- http://corfield.org/
Team Fusebox -- http://fusebox.org/
Got Gmail? -- I have 50, yes 50, invites to give away!
"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).
CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm
An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).
CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm
An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
