On 5/29/07, Ravi Gehlot <[EMAIL PROTECTED]> wrote: > When you say you have to explicitly put it "there". Can you explain where?
Took me a while to realize you're asking Andy even tho' you're quoting my email... > > On 5/29/07, Andy Matthews <[EMAIL PROTECTED]> wrote: > >> I believe that for a variable/query to be available in the APPLICATION > >> scope, you have to explicitly put it there. Just placing it inside the > >> onApplicationStart doesn't do anything for you (I think). He means you have to explicitly put the variable/query in the application scope: <cfset application.someVar = someValue /> Just placing a regular variable assignment inside onApplicationStart() does not place anything in application scope: <!--- this goes in variables scope, even inside onApplicationStart() ---> <cfset someVar = someValue /> (Not sure why anyone would think it would behave differently?) Once again, I strongly recommend reading the chapter on Application.cfc in the Developer's Guide as it explains the whole migration process from Application.cfm / OnRequestEnd.cfc and gives plenty of examples and talks about the use cases for each handler method. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279477 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

