Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Which – PB Docs 2021 – PowerBuilder Library

Which – PB Docs 2021

Which

PowerScript function

Description

Allows a component to find out whether it is running on a
transaction server.

Applies to

TransactionServer objects

Syntax

Argument

Description

transactionserver

Reference to the TransactionServer service instance

Return value

Integer.

Returns 0 if the object is not running on a transaction server, 1 if
it is running on EAServer (obsolete), or 2 if it is running on
COM+.

Usage

The Which function allows a custom class user object to perform
different processing depending on its runtime context.

Examples

The code in the following example checks to see whether the runtime
context is a transaction server. If it is, it uses transaction semantics
that are appropriate for a transaction server; otherwise, it uses COMMIT
and ROLLBACK to communicate directly with the database:

See also

EnableCommit

IsInTransaction
(obsolete)

IsTransactionAborted
(obsolete)

Lookup (obsolete)

SetAbort

SetComplete


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x