[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FN_TTBEGIN()
 Begin transaction
------------------------------------------------------------------------------
 Syntax
 
      fn_ttBegin() -> nRes
 
 Arguments

     None

 Returns

     <nRes>, a numeric, as follows:

          0       Success!
        150       Out of dynamic workspace
        254       There's an implicit transaction already
                  active, but now it has been converted to
                  an explicit transaction
        255       There's an explicit transaction already
                  active

 Description

     Begin an explicit transaction on the current file server.

 Examples

    if fn_hasTTS()
       if fn_ttBegin() == 0
          qout( "Transaction started!" )
          nTrans := fn_ttEnd()
          qout( "Transaction ended, trans # = ", nTrans )
       else
          qout( "Can't begin the transaction" )
       endif
    endif


 Source: N:\SRC\TTS\TTS.PRG

 Author: Glenn Scott

See Also: FN_TTEND()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson