nope.

<quote>
"In testing this I called foo() with no arguments and did a dump on arguments."  
</quote>

So, even though foo is called without arguments I get a struct arguments
arg1 : "undefined struct element"
arg2 : "undefined struct element"
.
.
.


so StructCount() > 0.

Doug

>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Behalf Of Bryan F. Hogan
>Sent: Tuesday, September 30, 2003 2:02 PM
>To: [EMAIL PROTECTED]
>Subject: RE: [CFCDev] calling a method and arguments...how many?
>
>
>StructCount(Arguments)
>
>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Behalf Of [EMAIL PROTECTED]
>Sent: Tuesday, September 30, 2003 2:01 PM
>To: [EMAIL PROTECTED]
>Subject: [CFCDev] calling a method and arguments...how many?
>
>
>Of, I have a  CFC with a method foo that has say six arguments 
>all of which
>are NOT required.  I want to test that whatever called foo() 
>passed at least
>one of the arguments in its call.  Ugh, how?  In testing this 
>I called foo()
>with no arguments and did a dump on arguments.  CF output a 
>structure with
>keys the arguments names and each value as "undefined struct 
>element".  Do I
>have to loop through this struct and test each value?  Or is 
>ther a slick
>approach?  Yes, I know I can remove all the cfargument 
>delcarations, but
>then I loose the type validations.
>
>---->dugOUT   ���
>"When I was kidnapped, my parents snapped into action.  They 
>rented out my
>room." -- Woody Allen
>
>----------------------------------------------------------
>You are subscribed to cfcdev. To unsubscribe, send an email
>to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev'
>in the message of the email.
>
>CFCDev is run by CFCZone (www.cfczone.org) and supported
>by Mindtool, Corporation (www.mindtool.com).
>
>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 word 'unsubscribe cfcdev' 
>in the message of the email.
>
>CFCDev is run by CFCZone (www.cfczone.org) and supported
>by Mindtool, Corporation (www.mindtool.com).
>
>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 word 'unsubscribe cfcdev'
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

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

Reply via email to