No problem, I know how it goes 8^).

Thanks for the help though.

--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 942-5378
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 24, 2004 6:59 PM
To: CF-Talk
Subject: RE: IsDefined("CGI.foo") always returns YES

Sheesh.  I'm readin' through the mail, and obviously missing stuff as
I go.  Sorry about that...

- Jeff

On 24 Feb 2004 at 17:06, Mosh Teitelbaum wrote:

> Jeff:
>
> Thanks, that's what I'm using as a work around:
>
> > >As a work around, I'm using StructKeyList() to get a list of variables
in
> > >the CGI scope, but it's a kludge I'd rather not use.
>
> --
> Mosh Teitelbaum
> evoch, LLC
> Tel: (301) 942-5378
> Fax: (301) 933-3651
> Email: [EMAIL PROTECTED]
> WWW: http://www.evoch.com/
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 24, 2004 4:56 PM
> To: CF-Talk
> Subject: RE: IsDefined("CGI.foo") always returns YES
>
>
> Mosh -
>
> Take the decision out of CF's hands, so to speak:
>
> <cfset lstCGIKeys = StructKeyList(cgi)>
> <cfoutput>#ListFindNoCase(lstCGIKeys, "foo")#</cfoutput>
>
> How's that for an endorsement for "ColdFusion Lists, Arrays, and
> Structures"?!  ;)
>
> - Jeff
>
> On 24 Feb 2004 at 16:32, Mosh Teitelbaum wrote:
>
> >
> > Jamie:
> >
> > Thanks but that won't actually work for me.Even though it's suggested in
> > the documentation.
> >
> > I'm trying to test for existence.I don't care if the variable has a
value,
> > just whether or not it exists.Some CGI variables are empty, so that test
> > won't work.
> >
> > --
> > Mosh Teitelbaum
> > evoch, LLC
> > Tel: (301) 942-5378
> > Fax: (301) 933-3651
> > Email: [EMAIL PROTECTED]
> > WWW: http://www.evoch.com/
> >
> > -----Original Message-----
> > From: Jamie Jackson [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, February 24, 2004 4:15 PM
> > To: CF-Talk
> > Subject: Re: IsDefined("CGI.foo") always returns YES
> >
> > isdefined("cgi.anything") is always true.
> >
> > use len(cgi.anything) instead.
> >
> > On Tue, 24 Feb 2004 15:42:54 -0500, in cf-talk you wrote:
> >
> > >All:
> > >
> > >I ran into something unusual and I've never heard of it before.Through
> > >some quick testing, it seems as if trying to determine a variables
> > existence
> > >within the CGI scope, whether using IsDefined() or StructKeyExists(),
> > always
> > >returns YES.Even if the variable doesn't exist in that scope.
> > >
> > >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.
> > >
> > >As a work around, I'm using StructKeyList() to get a list of variables
in
> > >the CGI scope, but it's a kludge I'd rather not use.
> > >
> > >Has anyone else ever run into this?Know of a way to resolve it?
> > >
> > >TIA
> >
> >
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to