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
- void report(Employee employee)
- {
- }
Test Function
- void test()
- {
- for each emp in Employee
- {
- //NO ERROR:
- thisapp.report();
- //ERROR: Error at line number : 8 Number of arguments mismatches
- thisapp.report(emp);
- //ERROR: Error at line number : 10 Number of arguments mismatches
- thisapp.report(emp.ID);
- }
- //ERROR: Error at line number : 13 Number of arguments mismatches
- thisapp.report(1145891000001031409);
- //ERROR: Error at line number : 15 Number of arguments mismatches
- thisapp.report(Employee[ID = 1145891000001031409]);
- }
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?