okay - thanks. That's what it seemed to be saying, but I hadn't encountered
that before.
Is that an ECMA thing? I didn't think it was that way in javascript.
>All var scoped variables must be declared before any other code. The
>"if" block after the first variable is what's causing the error.
r
> local=structNew()" at the top, and I can dynamically assign
> "local.the_day=1" later on.
>
> Oblio
>
>
>
> -Original Message-
> From: daniel kessler [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 02, 2007 10:58 AM
> To: CF-Talk
> Subject:
all var scoped variables must be at the top of a function.
you're var'ing "the_type", then you're doin ga conditional...then more var'ing.
that conditional either has to come after the vars...or var everything
to an empty string (or 0) at the top...then set later.
On 2/2/07, daniel kessler <[EMA
All var scoped variables must be declared before any other code. The
"if" block after the first variable is what's causing the error.
> -Original Message-
> From: daniel kessler [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 02, 2007 10:58 AM
> To: CF-Talk
&
02, 2007 10:58 AM
To: CF-Talk
Subject: error in cfscript
I'm receiving an error that I don't understand: Local variable the_day
on line 10 must be grouped at the top of the function body.
funct
I'm receiving an error that I don't understand: Local variable the_day on line
10 must be grouped at the top of the function body.
function makeDate(a_day,a_month,a_year,a_type){
var the_type = "begin";
6 matches
Mail list logo