Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Telepathy Communications Library - <b>tp_errmsg()</b> - convert error code to english text http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   tp_errmsg() - convert error code to English text

   cMessage := tp_errmsg([nError])

   nError      Error code.

   Returns     Text string containing an error message.

   Converts an error code into English text.  nError is code returned by
   a function such as tp_error().  The return value is a text string
   that may be used to display an appropriate error message.  All
   possible error codes and messages are listed in the Error Codes
   section.

   If nError is omitted, the current value of tp_error() is used.

   Example:

       nError := tp_sx1k(1, cFile)     // Send file using Xmodem-1K.
       if nError <> 0                  // Error during transfer?
           ? tp_errmsg(nError)         // Yes - print error message.
       endif

See Also: tp_errcodes() tp_error() Error Codes

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