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

