> Why not simply
>
> <cfif isdefined("aStruct.aField")> ?
I implied in my original post that you could use dot notation, as opposed to
array syntax.
"If you use dot notation, it's clear that you're
referencing a variable within a structure, I suppose,
which entails checking the existence of both the
structure and the member variable."
I could've made it a little clearer, I suppose, though.
I was simply rewriting the test to clarify that there are actually two
things being tested in the single IsDefined request - the existence of the
structure and the existence of the structure member.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists