ser_sr24_error_string


int   ser_sr24_error_string (
     int errorcode   //error number to translate to a string message
     );

Summary

This function translates the passed error code into a meaningful string message. It returns a pointer to a static buffer which contains the error string.

Parameters

errorcode:
    This is the numeric error code to translate into an error string.

Return Values

The function returns a pointer to a static buffer which contains the error string.

Visual Basic Notes

The Visual Basic equivalent of this function is the ErrorString method. It returns a string description of the passed error code.

Prototype:
object.ErrorString (
     ByVal errorcode As Long   'error number to translate to a string message
     ) As String

Example
str = object.ErrorString(result)   'translate function result into an error string



Back to Contents Winford Engineering (2000)