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>_errputoscode()</b> http://www.X-Hacker.org [<<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 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()

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