Hang on, I was wrong! If you define your function like this: DEF FUNC A,B ... END And call it like this: FUNC A,B It should work. Note the lack of parentheses; I think that was where the problem was. Thank goodness. That's much more useful.