09-19-2008, 08:15 PM
Here you go:
'Function file:
You forgot to assign the return value to a variable. Next time please format the code while posting a query.
Code:
x = TestFunction (sMenuClick, noMenuVal)
Reporter.ReportEvent micPass, "Test Function", "TestFunction: " & x
'Function file:
Code:
Function TestFunction (sMenuClick, noMenuVal)
If 1+1 = 2 Then
TestFunction = true
Reporter.ReportEvent micPass, "INSIDE Test Function", "TestFunction: " & TestFunction
End If
End Function
You forgot to assign the return value to a variable. Next time please format the code while posting a query.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course