Toerrormessageda100 – Yokogawa PC-Based MX100 User Manual

Page 1158

Advertising
background image

24-67

IM MX190-01E

DARWIN for Extended API - Visual C/Visual Basic/Visual Basic.NET/Visual C# -

24

toErrorMessageDA100

Syntax

int toErrorMessageDA100(int errCode, char * errStr, int
errLen);

Declaration

Visual Basic
Public Declare Function toErrorMessageDA100 Lib
"DAQDA100"(ByVal errCode As Long, ByVal errStr As String,
ByVal errLen As Long) As Long
Visual Basic.NET
Public Declare Ansi Function toErrorMessageDA100 Lib
"DAQDA100"(ByVal errCode As Integer, ByVal errStr As String,
ByVal errLen As Integer) As Integer
C#
[DllImport("DAQDA100.dll" CharSet=CharSet.Auto,
EntryPoint="toErrorMessageDA100")]
public static extern int toErrorMessageDA100(int errCode,
byte[] errStr, int errLen);

Parameters

errorCode

Specify the error number.

errStr

Specify the field where the string is to be stored.

errLen

Specify the byte size of the field where the string is to be stored.

Description

Stores the error message string corresponding to the error number to the specified

field.
• The string stored in the field includes the terminator (NULL).

• The return value is the length of the actual string. The return value does not

include the terminator.

• The strings that can be stored are, in general, ASCII strings.

Return value

Returns the length of the string.

Reference

getErrorMessageDA100

24.2 Details of Functions - DARWIN (Visual C/Visual Basic/Visual Basic.NET/C#) - Retrieval Functions

Advertising