Hello
I have a rather large page of code which ive been working on, and I get the
following error:
This _expression_ must have a constant value.
It doesn¹t give me a line number, or a code snippet, just that text.
As I said I have a lot of code (1000+ lines) and I cant quite tie down the
proble
he culprit.
Hope that helps.
-Original Message-
From: Ryan Mitchell [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 16, 2003 10:41 AM
To: CF-Talk
Subject: Very vague error message
Hello
I have a rather large page of code which ive been working on, and I get
the
follo
we all LOVE, cf.
tony
-Original Message-
From: Michael S. Hodgdon [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 16, 2003 10:18 PM
To: CF-Talk
Subject: RE: Very vague error message
I have never come across this in a ColdFusion. One way you can try to
pinpoint the error is to place stateme
assuming that it is within
tags, that is ;)
tony
-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 16, 2003 10:24 PM
To: CF-Talk
Subject: RE: Very vague error message
i always use
Im here (#timeFormat(now(),'hh:mm:ss')#> !
and pl
How about cftrace?
_
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 16, 2003 10:24 PM
To: CF-Talk
Subject: RE: Very vague error message
i always use
Im here (#timeFormat(now(),'hh:mm:ss')#> !
and place it before trouble points, or after them to se
how about it?
never used it :)
tw
-Original Message-
From: Michael T. Tangorre [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 16, 2003 10:33 PM
To: CF-Talk
Subject: RE: Very vague error message
How about cftrace?
_
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: Sunday
Weegs, how did the test go?
_
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 16, 2003 10:37 PM
To: CF-Talk
Subject: RE: Very vague error message
how about it?
never used it :)
tw
-Original Message-
From: Michael T. Tangorre [mailto:[EMAIL PROTECTED]
Sent
taking it @ max on the 20th :)
studying while working tonight!!
tw
-Original Message-
From: Michael T. Tangorre [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 16, 2003 10:42 PM
To: CF-Talk
Subject: RE: Very vague error message
Weegs, how did the test go?
_
From: Tony Weeg
Cool. I wish I wasn't up Managerial accounting homework is not as much
fun as Cold Fusion Coding :-)
_
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 16, 2003 10:42 PM
To: CF-Talk
Subject: RE: Very vague error message
taking it @ max on the 20th :)
studying
AIL PROTECTED]>
<[EMAIL PROTECTED]cc:
omcast.net> Subject: RE: Ve
statement that reads
> case constant, this may be the culprit.
>
> Hope that helps.
>
> -Original Message-
> From: Ryan Mitchell [mailto:[EMAIL PROTECTED]
> Sent: Sunday, November 16, 2003 10:41 AM
> To: CF-Talk
> Subject: Very vague error message
>
>
> 1000+ lines of code in a single CF template seems a bit excessive for
> starters.
That depends on several things
For all we know it could be 500 lines of code and 500 lines of remarks
and spacing
I've seen some templates which have about 300 lines of code, but the
whole template is over 1,200
>
> -Original Message-
> From: Ryan Mitchell [mailto:[EMAIL PROTECTED]
> Sent: Sunday, November 16, 2003 10:41 AM
> To: CF-Talk
> Subject: Very vague error message
>
> Hello
>
> I have a rather large page of code which ive been working on, and I get
sage-
From: Ryan Mitchell [mailto:[EMAIL PROTECTED]
Sent: maandag 17 november 2003 13:07
To: CF-Talk
Subject: Re: Very vague error message
Ok, tracked it down to the switch statement:
switch(type)
{
case request.AUTH_ACL:
resu
if()
Oh, and you forgot the break; in the first 2 case statements
-Original Message-
From: Ryan Mitchell [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17, 2003 7:07 AM
To: CF-Talk
Subject: Re: Very vague error message
Ok, tracked it down to the switch statement
Looking at his code, I think it was intentional
-Original Message-
From: Philip Arnold [mailto:[EMAIL PROTECTED]
Sent: maandag 17 november 2003 13:21
To: CF-Talk
Subject: RE: Very vague error message
if()
Oh, and you forgot the break; in the first 2 case statements
[Todays Threads
> else if(type IS request.AUTH_MOD){
> result = result OR u_access[j]['auth_mod'] OR is_admin;
> }
> else if(type IS request.AUTH_ADMIN){
> result = result OR is_admin;
> }
> -Original Message-
> From: Ryan Mitchell [mailto:[EMAIL PROTECTED]
> Sent: maandag 17 n
y, November 17, 2003 7:20 AM
To: CF-Talk
Subject: RE: Very vague error message
if(type IS request.AUTH_ACL){
result = u_access[j][key] OR u_access[j]['auth_mod'] OR is_admin;
}
else if(type IS request.AUTH_MOD){
result = result OR u_access[j]['auth_mod'] OR is_admin;
}
else
al Message-
From: Philip Arnold [mailto:[EMAIL PROTECTED]
Sent: maandag 17 november 2003 14:40
To: CF-Talk
Subject: RE: Very vague error message
But, without the "break;" in the case, this doesn't do the same thing
If you want to do EXACTLY what the switch did, then you don'
19 matches
Mail list logo