paul_nardell
15 years agoNew Contributor
TestComplete Evaluate Statement function equivalent
Does TestComplete have an Evaluate function equivalent?
What I'm trying to do is build a string then execute it as a function call.
So for example, if I have a function called "Start_Application" which takes two parameters, path and mode, I've built a string that looks like this
FunctionCall = "Start_Application" & "(" & Path & "," & Mode & ")"
Then I want to run:
Set Err = Evaluate(FunctionCall) which would be the equivalent of doing Set Err = Start_Application("C:\Test.exe",0)
Is there a way to do this?
What I'm trying to do is build a string then execute it as a function call.
So for example, if I have a function called "Start_Application" which takes two parameters, path and mode, I've built a string that looks like this
FunctionCall = "Start_Application" & "(" & Path & "," & Mode & ")"
Then I want to run:
Set Err = Evaluate(FunctionCall) which would be the equivalent of doing Set Err = Start_Application("C:\Test.exe",0)
Is there a way to do this?