To create a Transaction object in code, declare it in the form, then create a new instance of it. To simplify the code, the examples in this chapter assume that the Sybase.DataWindow namespace has been referenced in the code:
[Visual Basic] Imports Sybase.DataWindow ... Friend WithEvents TR1 As Transaction ... Me.TR1 = New Transaction()
[C#] using Sybase.DataWindow; ... private Transaction TR1; ... this.TR1 = new Transaction();