Thanks, it's always the commas or semicolons that screws up the code

. The comma is used in Sweden instead of the decimal point for decimal indication, which I sometimes forgets.
BTW, the parameter is used elsewhere, I just didn't copy the whole code.