Kevin, try this: 

<cfinvoke
        component="cfcs.users"
        method="Init"
        returnvariable="APPLICATION.Users">

<cfinvokeargument 
        name="Settings"
        value="#APPLICATION.Settings#" 
        />

</cfinvoke>

Except change the "name" attribute of the CFInvokeArgument to be
whatever the names agument of your Init() method takes.


......................
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
 
Need ColdFusion Help?
www.bennadel.com/ask-ben/


-----Original Message-----
From: kevin sanusi [mailto:[EMAIL PROTECTED] 
Sent: Saturday, February 10, 2007 2:59 PM
To: CF-Newbie
Subject: HOW to replace CreateObject with Cfinvoke function ?

Hi all, I'm new with coldFusion programming and need help on how to
replace CreateObject function with Cfinvoke function ?

This is the CreateObject function :

<cfset application.user =
createObject("component","cfcs.user").init(application.settings)>

Any help would be appreciated !! THANKS !!



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:2514
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to