12-12-2009, 01:48 AM
(12-11-2009, 01:16 PM)Red X Wrote: Uhh....I'm having a bit of trouble with it. I'm going to need some help.Why ? Try... Catch is really simple
You just use Try before a risky line of code or a risky piece of code, then Catch to state what should be done if an error actually occurs (catch can also be left blank) and then End Try
example:
Code:
Try
FileOpen(1,"C:/test.txt",OpenMode.Input)
Catch
MsgBox("File <C:/test.txt> does not exist")
End Try