Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Advantage CA-Clipper Guide v5.5 - ax_transaction() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 AX_Transaction()
 Specify a transaction activity
------------------------------------------------------------------------------

 Syntax

     AX_Transaction( [<nTransactionState>] ) -> logical

     <nTransactionState>  An optional numeric value specifying the type
     of transaction operation to be performed. Valid <nTransactionState>
     values are:

     1 = Begin Transaction
     2 = Commit Transaction
     3 = Rollback Transaction
     No Value

 Returns

     If no parameter is passed to AX_Transaction(), then returns a .T. if
     user is currently in a transaction and a .F. if user is not currently
     in transaction. If <nTransactionState> is specified, returns the
     previous transaction state.

 Description

     This function is the main function for the Advantage TPS. All the
     transaction command statements, BEGIN TRANSACTION, COMMIT TRANSACTION
     and ROLLBACK TRANSACTION, pre-process into the AX_Transaction
     ( <nTransactionState> ) function.

     This function is best used to indicate whether a client is in a
     transaction or not, which is accomplished by passing no arguments to
     the function. To begin, commit, or rollback a transaction, use the
     commands and not the function. This course of action will minimize
     any re-coding efforts should the function in future TPS releases take
     extra parameters to accommodate new functionality.

 Example

     ? AX_Transaction()         // Returns .F.

     BEGIN TRANSACTION

        ? AX_Transaction()      // Returns .T.
        APPEND BLANK

     COMMIT TRANSACTION

     ? AX_Transaction()         // Returns .F.


See Also: BEGIN TRANSACTION COMMIT TRANSACTION ROLLBACK TRANSACTION

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson