Originally Posted by
matsp
Well, then you also need to PASS 7 arguments every place where the function is called.
The error is exactly that - you are passing 5 arguments, when it expects 7.
There is no way around this [although if you often have 2 arguments that aren't being used, you may want to add a second function that takes 5 arguments, which calls the 7-argument function with some sort of default arguments for the 2 extra arguments - if nothing else, it will make the code smaller than adding the extra 2 arguments everywhere, not to mention it saves changing every call to the function].
--
Mats