Try IsDefined(aStruct[aField]) ?

Jamie

On Thu, 18 Apr 2002 08:50:05 -0700 (PDT), in cf-talk you wrote:

>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/
>
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.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