On 11/14/05, Claude Schneegans <[EMAIL PROTECTED]> wrote:
> <CFIF isdefined ("CGI.whateverYouPutHere")>
> <CFOUTPUT>CGI.whateverYouPutHere = [#CGI.whateverYouPutHere#]</CFOUTPUT>
> <CFELSE>CGI.whateverYouPutHere not defined
> </CFIF>
>
> Always displays
> CGI.whateverYouPutHere = []
Hi,
The structKeyExists function seems to work well (tested with
ColdFusion MX 6.1 with Updater).
The following code will output "Variable doesn't exist":
<cfif structKeyExists(CGI,"whateverYouPutHere")>
Variable exists
<cfelse>
Variable doesn't exists
</cfif>
Regards.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224064
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54