G
Guest
Hi Everyone,
I'm using VS 2005 now and would like to know if .Net has a replacement for
the Resume Next clause. I would like to do something like the following:
On Error Resume Next
value = My.Computer.FileSystem.GetDirectories(Path & "\" & tbl.Name )
if value.Count > 0 then
My.Computer.FileSystem.CreateDirectory(Path & "\" & tbl.Name)
end if
I wanted to see if a Directory existed. But if the main dir is not there,
GetDirectories throws an exception. In this case is good, indicating that its
not there. But I need to the code to continue without going to the Catch
block. Is there a way to do this. Thanks for any info.
Michael
I'm using VS 2005 now and would like to know if .Net has a replacement for
the Resume Next clause. I would like to do something like the following:
On Error Resume Next
value = My.Computer.FileSystem.GetDirectories(Path & "\" & tbl.Name )
if value.Count > 0 then
My.Computer.FileSystem.CreateDirectory(Path & "\" & tbl.Name)
end if
I wanted to see if a Directory existed. But if the main dir is not there,
GetDirectories throws an exception. In this case is good, indicating that its
not there. But I need to the code to continue without going to the Catch
block. Is there a way to do this. Thanks for any info.
Michael