Hi, all...
This statement in a CFC function confuses me:
<cfset variables.DSN = arguments.DSN />
Why? Because it seems backwards. It seems to me that
I've already defined my variables.DSN values outside of
the CFC and am passing that value into CFC as an argument.
It only makes sense, then, for me to use this, instead:
<cfset arguments.DSN = variables.DSN />
Backwards from the way it was written above. It seems I should
be setting arguments.DSN equal to variables.DSN.
According to this example written from the calling page:
<cfset variables.DSN = "myDSN" />
<cfset obj = createObject("component", "Object") .init(variables.DSN) />
I'm creating an object and specifying the DSN value as "variables.DSN",
and it only makes sense that in the called CFC function, that the function
would then create a value for arguments.DSN equal to variables.DSN or,
<cfset arguments.DSN = variables.DSN />.
Can someone explain why it's not backwards to write
<cfset arguments.DSN = variables.DSN /> in the function?
Thanks,
Rick
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307912
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4