o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

How to provide a 'retry' when catching exceptions -

How do I chuck code execution back to the try section after i catch an exception.

eg.

Try
My.Computer.FileSystem.DeleteFile("file.txt")
Catch ex as exception
select case messagebox.show("retry?")
case vbyes
'I want it to go back to the try section
case vbno
throw ex
end select
end try

there might be some vb6 in there, im still making the change

 


Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/genitalh/okquestions.com/relquery.php on line 79