I'm guessing that you're trying to create user-defined routines without return values so that you can call them as commands, like: DEF ROUTINE(X,Y) ... END DEF ROUTINE(A,B) A function with arguments has to return a value. Read the doc for user-defined functions carefully, or post a screenshot of your code so we can see what's up.