It works on mine without the typecast. Weirdly I could have sworn I tried this a little while ago and it still make a funny little window that I couldn't get into. hmm.
OK found the thread, it's because I was looping at the end instead of just showing an error and bombing out like your code:
http://www.blitzbasic.com/Community/posts.php?topic=58443#650100
OK found the thread, it's because I was looping at the end instead of just showing an error and bombing out like your code:
http://www.blitzbasic.com/Community/posts.php?topic=58443#650100