You should not use neither OUT nor RETURN for a reference of an array. I recommend you to modify your program as follows. DEF STR_TO_ARR S$ OUT A%[] -> DEF STR_TO_ARR S$,A%[]