I don't personally have any insight, but for what its worth the same can be experienced with certain COM objects and looping through their collections. IIRC, using CF to access MS Index Server has a similar issue to what you're describing and required resorting to try/catch to handle it.
Kevin -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Ross Sent: Wednesday, February 25, 2004 9:23 PM To: [EMAIL PROTECTED] Subject: [CFCDev] Testing For [undefined struct element] This is along the lines of the <cfargument> tag bug? thread a few weeks ago. I have come across a situation where I have a coldfusion struct that has [undefined struct element] in some of it's values, and I can't figure out how to test for it. Basically what is happening is that my CF struct came from flash, and in certain cases flash assigned "undefined" to certain object members. Now my data is back in CF, and I need to test for these "undefined" values. It's pretty quirky the way CF is handling this situation... it passes the isDefined() and structKeyExists() tests, yet trying to access it throws and error, so I can't test it's value (I guess it doesn't have one anyways). Is try/catch my only option? I think I can work around the issue but was wondering if anyone has any insight... thanks, Dave ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words '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 words '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]
