Code: Select all
Procedure MyProc(Arg1.l,Arg2.l,Arg3.l=5)
Debug Arg1
Debug Arg2
Debug Arg3
EndProcedure
Debug "Without 3rd Argument"
CallFunctionFast(@MyProc(),1,2)
Debug "With 3rd Argument"
CallFunctionFast(@MyProc(),1,2,9)
It got better in 5.1, but it's not yet correct. In 5.0, the function without that third parameter was called twice, than the program crashed.Without 3rd Argument
1
2
2 ;<- Should be 5
With 3rd Argument
1
2
9
Best regards
Franky