Duncan wrote:
yes, something like this:I just checked the docs for createObject, and it tells me nothing.
using this <cfset varPass = createObject("component","CFC.varpass").varpass(url,"URL","displaymode")>
does this interpret to mean this:
<cfset varPass = createObject("component","path.name.cfc").method(arg,arg,arg)>
?
variables.gateway = createObject("component", "ams.model.company.eama.eamaGateway").init(variables.appConstants.getDbDsn1(), variables.app.Constants.getDbTimeout1());
Call it like this for passing arguments by position (meaning in the order they are declared in your method):Do the arguments have to come in the brackets in the same order as the are listed in the CFC? Or do they programagically appear in the correct place?
variables.gateway.someMethod(0, "my name", variables.someVar);
Or explicitly:
variables.gateway.someMethod(id=0, name="my name", switchVar=variables.someVar);
I almost always pass by position, someone please correct my explicit example if needed as I can't remember if I need quotes or pounds. I'm too lazy too night to look it up (mostly because I'm in need of dinner and brew).
.pjf
-- Peter J. Farrell :: Maestro Publishing
blog :: http://blog.maestropublishing.com email :: [EMAIL PROTECTED] phone :: 651-204-0513
Achievement: You can do anything you set your mind to when you have vision, determination, and an endless supply of expendable labor. --
---------------------------------------------------------- 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]
