CreateInstance Method, TransactionContext Object Example

Dim objTxCtx As TransactionContext
Dim objMyObject As MyCompany.MyObject

' Get TransactionContext.
Set objTxCtx = _
	CreateObject("TxCtx.TransactionContext")

' Create an instance of MyObject.
Set objMyObject= _
	objTxCtx.CreateInstance("MyCompany.MyObject")

© 1997 Microsoft Corporation. All rights reserved.