E
Euperia
Hi
I would like to use a string from an array to call a function. For
example, I have a list of functions called A.B,C,D etc and for various
situations I need to call a a different range of functions:
var myFunctions = ["A","C","G","B","E"];
for (i = 0; i < myFunctions.length; i++) {
errorcode = myFunctions(); // I want to call A(); B() etc
}
Is it possible with Javascript, and if so, how?
Regards
Andrew
I would like to use a string from an array to call a function. For
example, I have a list of functions called A.B,C,D etc and for various
situations I need to call a a different range of functions:
var myFunctions = ["A","C","G","B","E"];
for (i = 0; i < myFunctions.length; i++) {
errorcode = myFunctions(); // I want to call A(); B() etc
}
Is it possible with Javascript, and if so, how?
Regards
Andrew