Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Book 4-Appendices - <b>nnetttsbeg()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETTTSBEG()
 Starts an explicit transaction
------------------------------------------------------------------------------
 Syntax

     NNETTTSBEG([<cServer>|<nConId>]) --> lSuccess

     Netware: 2.2 and 3.11

 Arguments

     <cServer> Designates the name of the file server that is used.  Your
     workstation must be attached to <cServer>.

     <nConId> Designates the connection ID of your workstation on
     <cServer>.

 Returns

     NNETTTSBEG() returns .T. if a transaction on <cServer> has been opened
     successfully.  If an error occurs, the function returns .F..

 Description

     NOVELL NET TRANSACTION TRACKING SYSTEM BEGIN
     A call of NNETTTSBEG() starts an explicit transaction on <cServer>.
     After a transaction has been started, each write access to a marked,
     transactional file (the extended attribute transactional is set) is
     protocolled and becomes valid if the transaction is terminated.  During
     a running transaction, all file modifications can be undone.  If a
     failure occurs during a transaction (for example, a workstation crash),
     the Transactional Tracking System (TTS) backs up the transaction
     immediately.

     Only one transaction can be active per workstation.  This transaction
     includes all transactional files into which the data is written.

     A file on a server volume can be marked 'transactional' with
     NNETEXTATT().

 Note

     .  When you use the TTS, always take into account that other
        stations might not be able to read files attached by the transaction
        (see the Introduction to this chapter).

 Example

     Mark the file CLIENT.DBF as transactional, and start an explicit
     transaction:

     #include "ctnnet.ch"

     NNETEXTATT('CLIENT.DBF',EXA_TTS)

     IF .NOT. NNETTTSBEG()
        ? 'Transaction could not be started!'
     ENDIF

See Also: NNETTTSAB() NNETTTSEND()

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