Update(Int32,Int32,Int32,String,Int32,Boolean,DBString,DBString,DBInt,DBInt,DBString,DBString,DBString,DBString,DBString,String) Method
- Last UpdatedNov 06, 2025
- 3 minute read
The Update() method updates all fields for the specified data log value record in the Data_Log_Value table.
This overload of the method includes the lastEditComment input parameter.
'Declaration
Public Overloads Shared Sub Update( _
ByVal sessionId As Integer, _
ByVal grpId As Integer, _
ByVal valueIndex As Integer, _
ByVal valueName As String, _
ByVal valueType As Integer, _
ByVal editable As Boolean, _
ByVal curValue As DBString, _
ByVal specId As DBString, _
ByVal meaning As DBInt, _
ByVal meaningToValueIndex As DBInt, _
ByVal spare1 As DBString, _
ByVal spare2 As DBString, _
ByVal spare3 As DBString, _
ByVal spare4 As DBString, _
ByVal lastEditComment As DBString, _
ByRef modId As String _
)
'Usage
Dim sessionId As Integer
Dim grpId As Integer
Dim valueIndex As Integer
Dim valueName As String
Dim valueType As Integer
Dim editable As Boolean
Dim curValue As DBString
Dim specId As DBString
Dim meaning As DBInt
Dim meaningToValueIndex As DBInt
Dim spare1 As DBString
Dim spare2 As DBString
Dim spare3 As DBString
Dim spare4 As DBString
Dim lastEditComment As DBString
Dim modId As String
DataLogValue.Update(sessionId, grpId, valueIndex, valueName, valueType, editable, curValue, specId, meaning, meaningToValueIndex, spare1, spare2, spare3, spare4, lastEditComment, modId)
public static void Update(
int sessionId,
int grpId,
int valueIndex,
string valueName,
int valueType,
bool editable,
DBString curValue,
DBString specId,
DBInt meaning,
DBInt meaningToValueIndex,
DBString spare1,
DBString spare2,
DBString spare3,
DBString spare4,
DBString lastEditComment,
ref string modId
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- grpId
- Required. Holds the ID of the data log group of the record to be updated.
- valueIndex
- Required. Holds the value index of the record to be updated.
- valueName
- Required. Holds the column heading for the value.
- valueType
- Required. Holds the enumeration for the value type. The default is 0.
- editable
- Required. Holds the flag that, if set to true, specifies that the user can manually enter or modify the value. The default value is true.
- curValue
- Required. Holds the current value for this value.
- specId
- Required. Holds the spec ID from which the data log’s runtime value is sourced for the current running job.
- meaning
- This parameter is not used by the system.
- meaningToValueIndex
- This parameter is not used by the system.
- spare1
- Required. Holds the contents of the user-defined spare1 field.
- spare2
- Required. Holds the contents of the user-defined spare2 field.
- spare3
- Required. Holds the contents of the user-defined spare3 field.
- spare4
- Required. Holds the contents of the user-defined spare4 field.
- lastEditComment
- Required. Holds the new comment that describes why this record is being updated.
- modId
Required. Holds the modification ID for the record to be updated, for optimistic concurrency control. The passed value must match the modification ID in the record for the update to succeed.
Output. Holds the returned modification ID to identify the update instance of the record.