Add(Int32,Int32,Int32,Int32,Double,DBInt,String,DateTime,Nullable<Int32>,DBString,Int32,DateTime) Method
- Last UpdatedMar 17, 2026
- 2 minute read
The Add() method adds a new result record to the Result table.
'Declaration
Public Overloads Shared Sub Add( _
ByVal sessionId As Integer, _
ByVal sampleId As Integer, _
ByVal charId As Integer, _
ByVal valueNo As Integer, _
ByVal resultValue As Double, _
ByVal actSampleSize As DBInt, _
ByVal createdBy As String, _
ByVal createdAtLocal As Date, _
ByVal superseded As Nullable(Of Integer), _
ByVal lastEditComment As DBString, _
ByRef rowId As Integer, _
ByRef lastEditAt As Date _
)
'Usage
Dim sessionId As Integer
Dim sampleId As Integer
Dim charId As Integer
Dim valueNo As Integer
Dim resultValue As Double
Dim actSampleSize As DBInt
Dim createdBy As String
Dim createdAtLocal As Date
Dim superseded As Nullable(Of Integer)
Dim lastEditComment As DBString
Dim rowId As Integer
Dim lastEditAt As Date
Result.Add(sessionId, sampleId, charId, valueNo, resultValue, actSampleSize, createdBy, createdAtLocal, superseded, lastEditComment, rowId, lastEditAt)
public static void Add(
int sessionId,
int sampleId,
int charId,
int valueNo,
double resultValue,
DBInt actSampleSize,
string createdBy,
DateTime createdAtLocal,
Nullable<int> superseded,
DBString lastEditComment,
out int rowId,
out 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.
- charId
- Required. Holds the characteristic ID.
- valueNo
- Required. Holds the number that identifies the value in the subgroup.
- resultValue
- Required. Holds the result value of the characteristic measured.
- actSampleSize
- Optional. Holds the actual sample (subgroup) size if not recording individual results. This parameter is used for attribute measurements.
- createdBy
- Required. Holds the ID of the user who entered the value.
- createdAtLocal
- Required. Holds the date and time when the value was entered, in the entity's local time.
- superseded
Optional. Holds enumeration that indicates whether this result record has been superseded by another result record for the same sample ID, characteristic ID, and value number combination.
0 = No (the default)
1 = Superseded
- lastEditComment
- Optional. Holds comments about why the record was added.
- rowId
- Output. Holds the unique ID assigned to this record when it is added. This parameter is used by other methods that modify or delete this type of record.
- lastEditAt
- Output. Holds the date and time, in UTC, when the record was added.