08-26-2009, 01:10 PM
My exact question is as we have a 'Return' keyword in WinRunner which are used in fucntions. So is there any QTP equivalent fucntion/keyword for 'Return'.
My objective is to migrate a WR code to QTP code.
For eg:
My objective is to migrate a WR code to QTP code.
For eg:
Code:
public function func1(str var1)
{
auto var1
var1="abc"
if (a=0) then
return var1
else
msgbox "Bad luck"
}