How do I call a functionname thats stored in a variable - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: How do I call a functionname thats stored in a variable (/Thread-How-do-I-call-a-functionname-thats-stored-in-a-variable) |
How do I call a functionname thats stored in a variable - praveendasika - 11-29-2012 Hi , I have fetched the function name from the excel sheet which is stored in a variable. I want to call the function thats in the variable...Do you know a way on How to achieve that? Ex:- Code: value=2 Is there any other way that I can achieve this ? thanks, Surya RE: How do I call a functionname thats stored in a variable - Saleel Prabhu - 11-29-2012 Hi Surya, Try this, Code: Execute CurrentFunctionName&"(value)" Code: EVal (CurrentFunctionName&"(value)") Difference between both, EVal returns value while Execute doesn't. Regards, Saleel |