Forum Discussion
Marsha_R
6 years agoModerator
if myObj and myAction are both strings, then something like this should work:
eval(myObj + '.' + myAction)
- AlexKaras6 years agoChampion Level 3
And if myObj is an object, like in your example, then something like this should work:
eval(myObj.FullName + '.' + myAction)
- s21_shankar6 years agoNew Contributor
AlexKaras the solution works as charm. Thanks for the solution.
- s21_shankar6 years agoNew ContributorNopes as mentiined above myobj is an object and myactiin is a string.
Thanks for the response. - s21_shankar6 years agoNew ContributorThanks for the solution. I will try and let you know if it works.
Related Content
- 11 years ago
- 11 months ago
Recent Discussions
- 2 days ago