structKeyExists() and isDefined() should be false if it's truly "undefined"
(as in CFARGUMENT with no default), so there must be some other state you
are experiencing -- bummer that this is even more complicated than we
thought.



> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of David Ross
> Sent: Wednesday, February 25, 2004 11:23 AM
> 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]

Reply via email to