I'm unable to replicate the behavior you're getting.  I tried this:

<cfset o = createObject("component", "com.woodward.brad.argumentTest")>

<cfset st.x.y = 'def'>
<cfset o.argumentsXY(argumentCollection=st)>

And the brad.ArgumentTest component is coded like this:

<cfcomponent>
        <cffunction name="argumentsXY" output=1>
                <cfif IsDefined("arguments.x.y") AND ListLen(arguments.x.y)>
                        x.y = #arguments.x.y#
                <cfelse>
                        No good!
                </cfif>
        </cffunction>
</cfcomponent>


Can you give us some code that is reproducable?

> If I have this line (I don't really use x and y):
>
> <cfif IsDefined("arguments.x.y") AND ListLen(arguments.x.y)>
>
> then I get this error message in my CFC (CFMX6.1) pointing to the line
> above:
>
> "Element x.y is undefined in ARGUMENTS."
>
> I thought CF used short-circuiting - it does elsewhere, why not here?
> Can anyone confirm that I have to change the line to:
>
> <cfif IsDefined("arguments.x.y")>
>       <cfif ListLen(arguments.x.y)>
>
>
> Thanks,
> Douglas
>
> ----------------------------------------------------------
> 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