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 5.2 . Technical Reference - <b>_errputsubsystem()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _errPutSubSystem()
 Set the value of subSystem
------------------------------------------------------------------------------
 C Prototype

     #include "error.api"
     ERRORP _errPutSubSystem(
                              ERRORP pError,
                              BYTEP fpSubSystem
                            )

 Arguments

     pError is a pointer to the Error object that is to be set.

     fpSubSystem is a pointer to a null-terminated string indicating the
     subsystem in which the error occurred.

 Returns

     _errPutSubSystem() returns a pointer to the Error object (self).

 Description

     _errPutSubSystem() allows the assignment of the subSystem name to an
     error.  It is the combination of subSystem name and the subCode that
     uniquely identifies a specific error.

     You should make subCodes consistent between subsystems that are
     identical in functionality.  For example, the CA-Clipper DBFNTX and
     DBFNDX share the same subCodes wherever possible.  Designers of RDD
     subsystems should attempt to use the same subCodes as the CA-Clipper
     RDDs in order to provide consistency to the end user.

 Examples

     .  This code fragment shows the setting of subSystem:

        #include "error.api"

           .
           .
           .
           _errPutSubSystem( pError, "MYDRIVER" );
           uiErrCode = _errLaunch( pError );
           .
           .
           .

 Files:  Library is CLIPPER.LIB, header file is Error.api.


See Also: _errGetSubSystem() _errPutSubCode()

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