Forum Discussion
AlexeyKolosov
13 years agoStaff
Hi Pankaj,
I'm not sure what problem you actually face, however I suppose that you need to convert object names to actual objects and run function calls stored as strings. If so, you should consider using the eval function, which is available both in VBScript and in JScript - the function executes a string as if it's a piece of code and returns the result of the code execution (an object retrieved via its name string or a function call result). See the following MSDN Library articles for more information:
http://msdn.microsoft.com/en-us/library/12k71sw7(v=VS.84).aspx
http://msdn.microsoft.com/en-us/library/0z5x4094(v=vs.84).aspx
I'm not sure what problem you actually face, however I suppose that you need to convert object names to actual objects and run function calls stored as strings. If so, you should consider using the eval function, which is available both in VBScript and in JScript - the function executes a string as if it's a piece of code and returns the result of the code execution (an object retrieved via its name string or a function call result). See the following MSDN Library articles for more information:
http://msdn.microsoft.com/en-us/library/12k71sw7(v=VS.84).aspx
http://msdn.microsoft.com/en-us/library/0z5x4094(v=vs.84).aspx
Related Content
- 4 years ago
- 3 years ago
Recent Discussions
- 15 hours ago