> 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]

Reply via email to