struct
A       1
B       2

but the cfmx7 structCount is 3

-Harry
 

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im
Auftrag von Dawson, Michael
Gesendet: Dienstag, 21. Juni 2005 18:08
An: [email protected]
Betreff: RE: [CFCDev] Arguments count

If you dump the arguments struct, what do you get?

M!ke 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Harry Klein
Sent: Tuesday, June 21, 2005 10:58 AM
To: [email protected]
Subject: [CFCDev] Arguments count

Short quiz:
What is the output from the cfdump below? (in CFMX7)

1) 2 ?
2) 3 ?

================== Code ======================

<cffunction name="functa" returntype="void">
        <cfargument name="a">
        <cfargument name="b">
        
        <cfset functb(argumentcollection=arguments)>
</cffunction>

<cffunction name="functb">
        <cfargument name="a">
        <cfargument name="b">
        
        <cfdump var="#StructCount(arguments)#"> </cffunction>

<cfset functa(1,2)>

===============================================

-Harry

P.S. 
Result in CFMX 6: 2
Result in CFMX 7: 3


----------------------------------------------------------
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).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

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






----------------------------------------------------------
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).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

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


Reply via email to