Forum Discussion
jlperez
11 years agoOccasional Contributor
Hi again Hanya,
I’ve been thinking about your suggestion. I understand that I can use the eval function to access an object even if I have not accessed it before, for example (considering I currently know already the fullname property of the object strChildFullName):
ChildObject = eval(strChildFullName);
if (ChildObject ["Exists"])
{
//Any child object method or property would be accessible here
pChildObject ["Click"]();
}
Else
{
//Object doesn’t exist
}
Here the key for me is the time it takes to perform the instruction:
ChildObject = eval(strChildFullName);
I’ll check if it works, and if so I’ll measure the time it takes.
Thank you very much again for the idea.
Regards,
Jose Perez.
I’ve been thinking about your suggestion. I understand that I can use the eval function to access an object even if I have not accessed it before, for example (considering I currently know already the fullname property of the object strChildFullName):
ChildObject = eval(strChildFullName);
if (ChildObject ["Exists"])
{
//Any child object method or property would be accessible here
pChildObject ["Click"]();
}
Else
{
//Object doesn’t exist
}
Here the key for me is the time it takes to perform the instruction:
ChildObject = eval(strChildFullName);
I’ll check if it works, and if so I’ll measure the time it takes.
Thank you very much again for the idea.
Regards,
Jose Perez.
Related Content
- 2 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago