| || |
Display the value returned from Execute
I am passing the value to each of the variables below.
v = strObjWindowName&"." & strClass &"("&ArrayToString( strObjrn,",")&").GetButtonState("&ArrayToS tring(strObjInputValue,",")&")"
I am using "Execute" statement to convert the strings to native VB code above.
After executing, it should return the value of the button state. In my case, it should return "EnabledBlinking" or "Disabled".
Now, if I want to display the value to the user using "msgbox Execute v", QTP is giving an error as "expected end of statement".
What could be the exact format, so as to display the return value to the user?
Can anyone please help me on this?
Thanks in Advanced,
Re: Display the value returned from Execute
You need to use Eval method and not the Execute method