N
N! Xau
Hello everybody,
I am kind of a newbie. What's the difference between using dispose() or
= nothing in the 'finally' block of the following code:
Dim mycmd As New OracleCommand(setta_cmdQuery, con)
' setta_cmdQuery is a simple UPDATE query
mycmd.CommandType = CommandType.Text
Try
mycmd.ExecuteNonQuery()
Catch ex As Exception
MessageBox.Show(ex.Message)
Finally
'mycmd.Dispose()
mycmd = Nothing
End Try
THANKS
N! Xau
keep in mind the power of ANTANI
http://ilovemiliofede.altervista.org
I am kind of a newbie. What's the difference between using dispose() or
= nothing in the 'finally' block of the following code:
Dim mycmd As New OracleCommand(setta_cmdQuery, con)
' setta_cmdQuery is a simple UPDATE query
mycmd.CommandType = CommandType.Text
Try
mycmd.ExecuteNonQuery()
Catch ex As Exception
MessageBox.Show(ex.Message)
Finally
'mycmd.Dispose()
mycmd = Nothing
End Try
THANKS
N! Xau
keep in mind the power of ANTANI
http://ilovemiliofede.altervista.org