TK
----- Original Message -----
From: Michael S. Hodgdon
To: CF-Talk
Sent: Saturday, November 08, 2003 2:40 PM
Subject: CFC's behaving strangely on my machine
For some reason, unnamed scoped variables within CFCs appear to not work.
Code below:
Salary.cfc
<cfcomponent>
<cfset acfc = "My CFC">
<cffunction name="test" output="Yes">
#variables.acfc#
</cffunction>
</cfcomponent>
and my call to Salary.cfc
<cfset c = CreateObject('component', 'Salary')>
<cfoutput>#c.test()#</cfoutput>
Ok, so my understanding is that when I call this cfc it should report an
error that element "acfc" is undefined in "variables". However, when on the
calling page it in fact outputs "My CFC" to the user? Shouldn't the unnamed
and variables scope be different?
Maybe my brain is fried or my install is!!!!!
Any help?
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

