linuxlove
Veteran Member
So I'm playing around in QB some and I've been messing with ERR. What I want to do is if a file doesn't exist, use ERR to handle errors instead of crashing the whole program. Here is the current code I have:
However, when I try this, instead of seeing "File not found", I get "File not found" in QuickBASIC's screen. What am I doing wrong?
Code:
begindel: 'can be used to tell the code to restart using "GOSUB begindel"
input "File to delete: ", whatfile$
kill whatfile$
select case err
case 53
print "Flie not found"
end
end select