Try this (below) and you'll see why... The "arguments" collection is key
& value and testMe assigns a key of "1" to the first argument, which
doesn't match any of the arguments to testMe2.
<cffunction name="testMe2" output="1">
<cfargument name="one" type="string">
<cfdump var="#arguments#">
</cffunction>
<cffunction name="testMe" output="1">
<cfdump var="#arguments#">
<!--- <cfinvoke method="testMe2" argumentcollection="#arguments#" />
--->
</cffunction>
<cfoutput>
#testMe2("sample string")#
#testMe("sample string")#
</cfoutput>
-----Original Message-----
From: Leitch, Oblio [mailto:[EMAIL PROTECTED]
Sent: Friday, April 18, 2008 4:55 PM
To: CF-Talk
Subject: args & arg collections
Can someone explain why I can't pass an unnamed argument set from one
function to another?
<cffunction name="testMe2" output="1">
<cfargument name="one" type="string">
<cfdump var="#arguments#">
</cffunction>
<cffunction name="testMe" output="1">
<cfdump var="#arguments#">
<cfinvoke method="testMe2" argumentcollection="#arguments#" />
</cffunction>
<cfoutput>
#testMe("sample string")#
</ cfoutput >
v----------- ignore this -----------v
This email message may contain privileged and/or confidential
information. If you are not the intended recipient(s), you are hereby
notified that any dissemination, distribution, or copying of this email
message is strictly prohibited. If you have received this message in
error, please immediately notify the sender and delete this email
message from your computer.
CAUTION: The Agency of Human Services cannot ensure the confidentiality
or security of email transmissions.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303779
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4