Yokogawa PC-Based MX100 User Manual
Page 949
![background image](/manuals/360310/949/background.png)
17-215
IM MX190-01E
Functions for the MX100 (Extended API) - Visual C/Visual Basic/Visual Basic.NET/C# -
17
toItemNameMX100
Syntax
int toItemNameMX100(int itemNo, char * strItem, int lenItem);
Declaration
Visual Basic
Public Declare Function toItemNameMX100 Lib "DAQMX100"(ByVal
itemNo As Long, ByVal strItem As String, ByVal lenItem As
Long) As Long
Visual Basic.NET
Public Declare Ansi Function toItemNameMX100 Lib
"DAQMX100"(ByVal itemNo As Integer, ByVal strItem As String,
ByVal lenItem As Integer) As Integer
C#
[DllImport("DAQMX100.dll" CharSet=CharSet.Auto,
EntryPoint="toItemNameMX100")]
public static extern int toItemNameMX100(int itemNo, byte[]
strItem, int lenItem);
Parameters
itemNo
Specify the setup item number.
strItem
Specify the field where the string is to be stored.
lenItem
Specify the byte size of the field where the string is to be stored.
Description
Stores the name string corresponding to the specified setup item 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.
• Returns 0 if it does not exist.
• The strings that can be stored are, in general, ASCII strings.
Return value
Returns the length of the string.
Reference
CDAQMXItemConfig::toItemName
17.2 Details of Function - MX00 (Visual C/Visual Basic/Visual Basic.NET/C#) - Retrieval Functions