09-19-2008, 02:53 PM
When I call a function which should return true/false it doesn't seem to return any value. The value is printed out to the report in the function itself.
Test file where I call the function:
Function file:
I get a general run error in the Reporter line where I try to write the TestFunction value to the report. I guess it's a simple thing I'm forget, do you see what could be wrong?
Test file where I call the function:
Code:
TestFunction sMenuClick, noMenuVal
Reporter.ReportEvent micPass, "Test Function", "TestFunction: " & TestFunction
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
I get a general run error in the Reporter line where I try to write the TestFunction value to the report. I guess it's a simple thing I'm forget, do you see what could be wrong?