>
> Why can I not say this inside my onApplicationStart()?
>
> var application.com = structNew()


var indicates the variable is in the function local scope. You cannot put
the application scope in a local variable. If you want a variable that is
local to the function/method you are working in you can do:

<cfset var myVariable = 'foo'>

If you want a variable that will exist in the application, do:

<cfset application.myVariable = 'foo'>

You cannot put the application scope in a local variable:

<cfset var application.myVariable = 'foo'><!--- error --->

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;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303181
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