Which – PB Docs 125

Which PowerScript function

Description

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

Controls

TransactionServer objects

Syntax

Argument

Description

transactionserver

Reference to the TransactionServer service
instance

Return Values

Integer. Returns 0 if the object is not
running on a transaction server, 1 if it is running on EAServer, 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 (EAServer or COM+). 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


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