On Friday, Oct 25, 2002, at 06:38 US/Pacific, Mark A. Kruger - CFG 
wrote:
> Todd, I do "Isdefined('form.mytest')"  all the time and it works well. 
>  I
> think you should use "structkeyexists( )" if you want to use the 
> bracket
> syntax.

Note that structKeyExists() and isDefined() have slightly different 
meanings.

If you have a struct and you assign a Java null to one of the keys, 
then structKeyExists() will yield true but isDefined() will yield false.

It's an edge case but it's something to watch out for...

An Architect's View -- http://www.corfield.org/blog/

Macromedia DevCon 2002, October 27-30, Orlando, Florida
Architecting a New Internet Experience
Register today at http://www.macromedia.com/go/devcon2002

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to