Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
No value is returned to function call line
#1
Solved: 10 Years, 9 Months, 3 Weeks ago
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:
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?
Reply


Messages In This Thread
No value is returned to function call line - by MGMN - 09-19-2008, 02:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Fifth word from every thousand line in notepad files. sallu.iet@gmail.com 0 852 01-17-2020, 09:58 AM
Last Post: sallu.iet@gmail.com
  Grab multiple line data from log file haziqwebs 0 1,708 10-19-2016, 01:28 PM
Last Post: haziqwebs
  Calling a function in a Test Script from a function library anupam4j 3 5,926 06-26-2015, 12:31 AM
Last Post: babu123
  Not able to call the function kathirvelnagaraj 1 2,485 01-06-2015, 07:24 PM
Last Post: kathirvelnagaraj
  General run error. Line (18): "Loop while Browser("Index:=0").Object.Busy" AshokReddy 3 4,809 12-20-2013, 01:44 PM
Last Post: sshukla12

Forum Jump:


Users browsing this thread: 1 Guest(s)