opposite result:
using StructKeyExists(), foo exists in CGI
using IsDefined(), foo exists in CGI
Running ColdFusion 5.0.0.0 Enterprise.
Anyone?
--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 942-5378
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/
-----Original Message-----
From: Andrew Tyrone [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 24, 2004 6:08 PM
To: CF-Talk
Subject: RE: IsDefined("CGI.foo") always returns YES
> So, for example, the following evaluate to YES even if they shouldn't:
>
> IsDefined("CGI.foo")
> StructKeyExists(CGI, "foo")
>
> Doing a <CFDUMP VAR="#CGI#"> shows that the variable does not exist in the
> scope.
I don't get that behavior. If I run the following:
<!--- Begin --->
<cfif StructKeyExists(CGI,"foo")>
using StructKeyExists(), foo exists in CGI
<cfelse>
using StructKeyExists(), foo doesn't exist in CGI
</cfif>
<br><br>
<cfif IsDefined("CGI.foo")>
using IsDefined(), foo exists in CGI
<cfelse>
using IsDefined(), foo doesn't exist in CGI
</cfif>
<!--- End --->
I get the following output:
using StructKeyExists(), foo doesn't exist in CGI
using IsDefined(), foo exists in CGI
I am running CFMX 6.1 Enterprise with (I think) all the hotfixes.
Andy
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

