I think the error is on the IsDefined("arguments.x.y")

You may have to use something like structKeyExists(arguments.x, "y")
instead.

-Nelson

----- Original Message ----- 
From: "Douglas Humphris" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 21, 2003 12:03 PM
Subject: [CFCDev] Short circuiting??


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