Every time you hit space, this code should display:
In loop, entering function - pass 1
In function
In loop, entering function - pass 2
In function
In loop, entering function - pass 3
In function
...and so on, but it crashes on pass 2...
do
inc passes
print "In loop, entering function - pass " + str$(passes)
wait key
randomString$ = submit()
loop
end
function submit()
print "In function"
wait key
endfunction ""
I've cut out most of my code up to this little piece and it still crashes.
The program will make it through pass 1 successfully. But on pass 2, it enters the function and displays an error message. I'm not sure whether this is only happening to me or what, but it's definitely not a coding error.