K
Kepler
I have a situation where I need to use a Using statement that creates
some records in a database. After that completes, if it completes, I
need to do some file creation. Any code I'm putting after the Using
statement gives a compiler warning of "Unreachable Code Detected", and
it never runs.
Why is this happening? I really don't want to put the file
manipulation code in the using statement because it's a transaction.
I also need for that code to occur after the aforementioned
transaction. To move it into the calling code would be really ugly,
since it belongs right within this function.
Any help will be appreciated.
some records in a database. After that completes, if it completes, I
need to do some file creation. Any code I'm putting after the Using
statement gives a compiler warning of "Unreachable Code Detected", and
it never runs.
Why is this happening? I really don't want to put the file
manipulation code in the using statement because it's a transaction.
I also need for that code to occur after the aforementioned
transaction. To move it into the calling code would be really ugly,
since it belongs right within this function.
Any help will be appreciated.