quote:
Originally posted by SnuZZer
Hi.
Like this?
code:
var gemDag;
var gemMaaned;
var gemAar;
var gemTimer;
var gemMinutter;
var gemBegivenhed;
var gemEfterBegivenhed;
var Status = "fra";
function OnEvent_SignIn(Email)
{
Opdater();
}
Yes...
If you use a variable name in more then one function and you want it to be the same variable, like in you set it to something in function 1 and you read it back out in function 2, the variable must have a "global" scope/lifetime.
If you use a variable only in one function and thus not in any other function, it has a "local" scope/lifetime.
Each variable, no matter if it is global or local, must be declared first.
Global variables must be declared in global space, thus outside functions, while local variables must be defined in local space, thus inside functions...
quote:
Originally posted by SnuZZer
It doesn't change anything.
Because there are some more things wrong in your script though...