[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _errPutOsCode()
 Set the value of osCode
------------------------------------------------------------------------------
 C Prototype

     #include "error.api"
     ERRORP _errPutOsCode(
                           ERRORP pError,
                           USHORT uiOsCode
                         )

 Arguments

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

     uiOsCode is the operating system error code.

 Returns

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

 Description

     _errPutOsCode() sets the value of the operating system-specific error
     code.  This code corresponds to the DOS error number since current
     CA-Clipper versions run only under the DOS operating system, a DOS
     window in Windows or OS/2, or a DOS emulator in other operating systems.

 Examples

     .  This code fragment shows the setting of osCode:

        #include "error.api"
        #include "filesys.api"
           .
           .  <a file related error>
           .
           _errPutOsCode( pError, _fsError() );
           uiErrCode = _errLaunch( pError );
           .
           .
           .

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


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