The function has no return values. To make a function with no returns, use the following syntax: DEF FUNCNAME [PARAMS1,...] DEF MYCMD HI$, COUNT PRINT HI$*COUNT 'prints the given string COUNT times END You get the gist. Check the help for DEF for more info.