In Framework 2.0, you can use Using.
Using mytransaction As SQLiteTransaction = myconnection.BeginTransaction()
In version 1.1, there is no true equivalent, although you can accomplish the
exact same thing in either 1.1 or 2.0 with this:
Try
Dim mytransaction As SQLiteTransaction = myconnection.BeginTransaction()
Finally
Dim disposableObject as IDisposable = CType(mytransaction, IDisposable)
disposableObject.DIspose()
End Try
Note, however, that casting as IDisposable merely imitates the action of
Using and does not add a real Dispose() method to the class.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com/
*************************************************
Think Outside the Box!
*************************************************