Error Passing Form Objects

Error Passing Form Objects

Hi,

I'm getting an error any time I try and pass a form object.  Take a look at this simple example and the errors I am receiving.

Report Function
  1. void report(Employee employee)
  2. {
  3. }
Test Function
  1. void test()
  2. {
  3.     for each emp in Employee
  4.     {
  5.         //NO ERROR:
  6.         thisapp.report();
  7.         //ERROR: Error at line number : 8 Number of arguments mismatches
  8.         thisapp.report(emp);
  9.         //ERROR: Error at line number : 10 Number of arguments mismatches
  10.         thisapp.report(emp.ID);
  11.     }
  12.     //ERROR: Error at line number : 13 Number of arguments mismatches
  13.     thisapp.report(1145891000001031409);
  14.     //ERROR: Error at line number : 15 Number of arguments mismatches
  15.     thisapp.report(Employee[ID = 1145891000001031409]);
  16. }
This error appears each time I save.  Notice how all the variations I have tried produce the same error.

What should I do to fix this problem?