Do you really want a local variable named application.com?

If you want it in the APPLICATION scope, forget the var.

Adrian
http://www.adrianlynch.co.uk/

-----Original Message-----
From: James Buckingham
Sent: 11 April 2008 12:41
To: CF-Talk
Subject: var variables in an application.cfc


Why can I not say this inside my onApplicationStart()?

var application.com = structNew()

If I it out of the application scope it works...
var com = structNew()

.....or if I remove the var it's fine as well.
application.com = structNew().

But when I try to stay within recommedations of "var"-ing all my variables
it throws an error telling me I can't include "." in the syntax.

If application.cfc an exception from this or am I using this wrong?

Thanks,
James


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

Reply via email to