11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

STATUS Function Return Values<br />

After you execute TRANSACTION START, the STATUS function returns one of the<br />

values described in the following table.<br />

Example<br />

The following program segment displays a message if a transaction is already started<br />

when TRANSACTION START is executed:<br />

TRANSACTION START ELSE<br />

IF STATUS() = 1 THEN<br />

DISPLAY "A Transaction had already been started, NESTED<br />

Transactions"<br />

DISPLAY "are NOT Allowed. (Contact System Administrator)"<br />

INPUT PAUSE,1_<br />

END<br />

END<br />

Related <strong>Commands</strong><br />

<strong>UniBasic</strong><br />

Value Description<br />

0 The transaction was started.<br />

1 The transaction was not started.<br />

STATUS Function Return Values<br />

TRANSACTION COMMIT, TRANSACTION COMMIT<br />

TRANSACTION START 1-880

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!