The following code throws a syntax error:

<cfset aStruct=StructNew()>
<cfset aStruct.aField="something">
<cfif IsDefined("aStruct[aField]")>
        aStruct[aField] is defined
</cfif>

Is this just some CF quirk that IsDefined doesn't like
brackets or is there some good reason for this?

=====
I-Lin Kuo
Macromedia CF5 Advanced Developer
Sun Certified Java 2 Programmer

__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to