ErrorString


Function

Gets the error string from the error code.

 

Format

Ret = dncMeter1.ErrorString(ErrorCode, ErrorString)

 

Parameters

ErrorCode [ C#: int ] [ VB.NET: Integer ]
Specifies the error code.

 

ErrorString [ C#: out string ] [ VB.NET: String ]  
Specifies the start address of the buffer that stores the error string.

 

Return value

Ret [ C#: int ] [ VB.NET: Integer ]

Value

Description

0

Normality completion

510001

The input parameter is invalid. Check the parameter contents.

Other errors (See also: Error code details)

 

Remarks

A utility function that returns a meaningful string from an error code. Please use it for error handling

 

Example

Stores the contents of error code 510001 in ErrorString.

C#

int    Ret;
string ErrorString;

ret = dncMeter1.ErrorString(510001, out ErrorString);

 

VB.NET

Dim Ret As Integer
Dim ErrorString As String

Ret = dncMeter1.ErrorString(510001, ErrorString)