HI all
I have a question
If i have a couple of objects
can i reference the objects using a string
eg some objects
var test1 = new tObject();
var test2 = new tObject();
var test3 = new tObject();
tObjects has some funstions
maybe testFunction()
a sting references the object i want to call
var tString = 'test2';
how do i call the testFunction from object set in tString
eg
something like
tString.testFunction();
any help would be appreciated
Regards
I have a question
If i have a couple of objects
can i reference the objects using a string
eg some objects
var test1 = new tObject();
var test2 = new tObject();
var test3 = new tObject();
tObjects has some funstions
maybe testFunction()
a sting references the object i want to call
var tString = 'test2';
how do i call the testFunction from object set in tString
eg
something like
tString.testFunction();
any help would be appreciated
Regards