>From within a module you would use the caller scope to set variables
in the page that called the module - meaning

[page 1]
<cfmodule  template...

[in the module]
<cfquery name="yadda"...
...
caller.myvar = yadda.recordcount

[page 1 again]
<cfdump var="#myvar#">

It can get kind of hairy doing that, especially on larger system where
you looking at a page going... where the hell did that variable come
from - if your using cfmx I'd suggest checking out cffunction if
possible (that's beside the point though I guess)


On Tue, 09 Nov 2004 10:07:35 -0500, Anders Green <[EMAIL PROTECTED]> wrote:
> I've been looking around and I can't find the
> non-cfscript version of "return()".
> 
> The docs on CFModule seem a little short on this. ;)
> 
> I want to return the .recordcount of a query
> that gets run in a module.
> 
> Thanks guys,
> Anders
> +===========================================================+
> |Anders Green                 Email: [EMAIL PROTECTED]       |
> |                              Home: 919.303.0218           |
> |        Off Road Rally Racing Team: http://LinaRacing.com/ |
> +===========================================================+
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183730
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to