I got the same error when doing something similar. I don't think you can say 'in "function"' Store the function to a variable first and then say 'in variable'. Donner