Update Method (SampleCharLink)
- Last UpdatedNov 06, 2025
- 2 minute read
The Update() method updates all fields for the specified sample_char_link record in the Sample_Char_Link table.
'Declaration
Public Shared Sub Update( _
ByVal sessionId As Integer, _
ByVal sampleId As Integer, _
ByVal charId As Integer, _
ByVal qmSpecId As DBInt, _
ByVal note As DBString, _
ByVal causeId As DBInt, _
ByVal controlMove As Boolean, _
ByVal ignoreSample As Boolean, _
ByVal equipment As DBString, _
ByVal lastEditComment As DBString, _
ByRef lastEditAt As Date _
)
'Usage
Dim sessionId As Integer
Dim sampleId As Integer
Dim charId As Integer
Dim qmSpecId As DBInt
Dim note As DBString
Dim causeId As DBInt
Dim controlMove As Boolean
Dim ignoreSample As Boolean
Dim equipment As DBString
Dim lastEditComment As DBString
Dim lastEditAt As Date
SampleCharLink.Update(sessionId, sampleId, charId, qmSpecId, note, causeId, controlMove, ignoreSample, equipment, lastEditComment, lastEditAt)
public static void Update(
int sessionId,
int sampleId,
int charId,
DBInt qmSpecId,
DBString note,
DBInt causeId,
bool controlMove,
bool ignoreSample,
DBString equipment,
DBString lastEditComment,
ref DateTime lastEditAt
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- sampleId
- Required. Holds the Sample Id of the record being updated.
- charId
- Required. Holds the Characteristic Id of the record being updated.
- qmSpecId
- Required. Holds the Specification Id from which the sample was generated for the record being updated.
- note
- Required. Holds a text note about this sample for this characteristic of the record being updated.
- causeId
- Required. Holds the Cause Id for this characteristic of this sample for the record being updated.
- controlMove
- Required. Holds the Boolean value as to whether there was a change to an environmental factor for this sample that would render old control limits obsolete.
- ignoreSample
- Required. Holds the Boolean value as to whether this sample should be ignored when calculating statistics and run rule violations for this characteristic.
- equipment
- Required. Holds the equipment used to make the measurements for this characteristic for this sample.
- lastEditComment
- Required. Holds comments that describe why this record is being added.
- lastEditAt
Required. Holds the date/time when this record was added or last updated, for optimistic concurrency control. The passed value must match the lastEditAt value in the record for the update to succeed.
Output. Holds the date/time value when the record was updated by this called method.