Hi:
from my test.cfc I do have the following function.
<cfcomponent >  
  <cffunction name="fnhello" returntype="string" access="private">
        <cfset var x="hi">
        <cfreturn x>
  </cffunction>
</cfcomponent > 
from my cfm, I called my test.cfc by doing the folloing code
<cfset o=createObject("component", "test")>
<cfset oFn=o.fnhello()>

Question number 1?
Once, I called or created an object named "o", Can I destroy the object by 
doing so? or by other methods?
<cfset o=null>

Question number 2?
Would you used "cfinvoke" or cfobject/createObject to call your cfc?

thanks
Seng




----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to