I forgot to add that if I place the <cfset var me = structnew()> in the init function, then it will only be available in the init function right?

 

Marlon

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marlon Moyer
Sent: Sunday, February 22, 2004 3:02 PM
To: [EMAIL PROTECTED]
Subject: [CFCDev] Confused about var

 

Say with a CFC like this:

 

<cfcomponent>

            <cfset me = structnew()>

 

            <cffunction name=”init”>

 

            </cffunction>

 

</cfcomponent>

 

I can’t use the var keyword on the me structure, so will it be a shared instance among all instances of the CFC.  I’m trying to use this cfc in the session scope, and every session will have one of these cfc’s. 

 

Marlon

 

Reply via email to