Add(Int32,String,Int32,Int32,DBString,Boolean,DBString,DBString,DBString,DBString,DBString,String,Int32) Method
- Last UpdatedMar 17, 2026
- 3 minute read
The Add() method adds a new data log group record to the Data_Log_Grp table.
This overload of the method includes the lastEditComment input parameter.
'Declaration
Public Overloads Shared Sub Add( _
ByVal sessionId As Integer, _
ByVal grpDesc As String, _
ByVal maxValue As Integer, _
ByVal triggerType As Integer, _
ByVal triggerDetail As DBString, _
ByVal obsolete As Boolean, _
ByVal spare1 As DBString, _
ByVal spare2 As DBString, _
ByVal spare3 As DBString, _
ByVal spare4 As DBString, _
ByVal lastEditComment As DBString, _
ByRef modId As String, _
ByRef grpId As Integer _
)
'Usage
Dim sessionId As Integer
Dim grpDesc As String
Dim maxValue As Integer
Dim triggerType As Integer
Dim triggerDetail As DBString
Dim obsolete As Boolean
Dim spare1 As DBString
Dim spare2 As DBString
Dim spare3 As DBString
Dim spare4 As DBString
Dim lastEditComment As DBString
Dim modId As String
Dim grpId As Integer
DataLogGrp.Add(sessionId, grpDesc, maxValue, triggerType, triggerDetail, obsolete, spare1, spare2, spare3, spare4, lastEditComment, modId, grpId)
public static void Add(
int sessionId,
string grpDesc,
int maxValue,
int triggerType,
DBString triggerDetail,
bool obsolete,
DBString spare1,
DBString spare2,
DBString spare3,
DBString spare4,
DBString lastEditComment,
out string modId,
out int grpId
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- grpDesc
- Required. Holds the description of the data log group.
- maxValue
- Required. Beginning with MES 7.0, this parameter is not used by the system. It defaults to 64.
- triggerType
- Required. Holds an enumeration that specifies what triggers data collection. Currently, only the manual trigger type (0) is supported by the system.
- triggerDetail
- Optional. Holds an XML-encoded string that includes the detail for the trigger, which depends on the trigger type. Because this parameter does not apply to the manual trigger type, it is not currently used by the system. Set it to null.
- obsolete
- Required. Holds a flag that, if set to true, specifies that this data log group is obsolete.
- spare1
- Optional. Holds the contents of the user-defined spare1 field.
- spare2
- Optional. Holds the contents of the user-defined spare2 field.
- spare3
- Optional. Holds the contents of the user-defined spare3 field.
- spare4
- Optional. Holds the contents of the user-defined spare4 field.
- lastEditComment
- Optional. Holds comment that describes why this record is being added.
- modId
- Output. Holds the modification ID assigned to this record when it is added. The modId parameter is used by other methods that modify or delete this type of record for optimistic concurrency control.
- grpId
- Output. Holds the returned unique ID of the data log group that was added.
lastEditComment
Observe the following input parameter rules:
- Required non-DB* parameters: Must pass a value. Cannot be empty or null.
- Optional non-DB* parameters: Either enter a value or pass a null. If passing a null and a default value has been defined, the default value will be used for the parameter.
- Required DB* parameters: Must pass a value. To enter an empty value for the parameter, pass DB*.null (e.g., DBInt.null).
- Optional DB* parameters: To enter no value for the parameter, pass DB*.null (e.g., DBInt.null). To use the default value for the parameter if one has been defined for the object being added, pass a null.