M
mr_burns
hi,
i was wondering if anybody could tell me when a function is called and
variables are defined within that function, are the variables global
where i can call and modify the variables in other functions.
for example:
function fdosomethingfirst() {
//this function will be called first
var v_num1, v_num2
v_num = 1234;
}
function fdosomethingagain() {
//if i were to do something in this function, could i use the
variables from the previous function???
}
if the function - fdosomethingfirst() - was called first, is it
possible to use the variables used in that in - fdosomethingagain()??
i would try this out but im at work now and really need to know later
on. much appreciated.
burnsy
i was wondering if anybody could tell me when a function is called and
variables are defined within that function, are the variables global
where i can call and modify the variables in other functions.
for example:
function fdosomethingfirst() {
//this function will be called first
var v_num1, v_num2
v_num = 1234;
}
function fdosomethingagain() {
//if i were to do something in this function, could i use the
variables from the previous function???
}
if the function - fdosomethingfirst() - was called first, is it
possible to use the variables used in that in - fdosomethingagain()??
i would try this out but im at work now and really need to know later
on. much appreciated.
burnsy