The OLETxnObject object provides explicit control of MTS transactions to PowerBuilder clients using the SetComplete and SetAbort functions. OLETxnObject inherits from the OLEObject object.
OLETxnObject property |
Datatype |
Description |
---|---|---|
ClassDefinition |
PowerObject |
An object of type PowerObject containing information about the class definition of the object or control |
Handle |
Objhandle |
Internal use only |
OLETxnObject event |
Occurs |
---|---|
When the object is created. |
|
When the object is destroyed. |
|
When an error is found in a data or property expression for an external object. |
|
When the evaluation of an expression involving properties of an external object causes an error. This type of event occurs before the Error event. |
OLETxnObject function |
Datatype returned |
Description |
---|---|---|
String |
Returns the name assigned to the user object. |
|
Integer |
Creates a new instance of the class within the transaction context it is associated with and connects to it. |
|
Integer |
Not used. |
|
Integer |
Not used. |
|
Integer |
Not used. |
|
Integer |
Releases all objects previously connected. |
|
Integer |
Returns a pointer to the underlying OLE object. |
|
Integer |
Creates a reference to a context-specific instance of the specified service. |
|
PowerObject |
Returns a reference to the name of the parent object. |
|
Boolean |
Determines whether a server object is defunct. |
|
Boolean |
Adds an event to the end of the message queue of the user object. |
|
Integer |
Releases the pointer to the underlying OLE object. |
|
Integer |
Aborts the current transaction. |
|
Integer |
Sets the language locale to be used for automation programming on the object. |
|
Integer |
Sets the automation pointer of the OLETxnObject object to the value of the automation pointer of another object. |
|
Integer |
Sets the number of milliseconds that a PowerBuilder client waits before canceling an OLE procedure call to the server. |
|
Integer |
Attempts to commit the current transaction. |
|
Integer |
Sends an event to the user object and executes the script associated with the event. |
|
Object |
Returns the type of the user object. |