UpdateSpecific(Int32,String,String,String,Nullable<Int32>,Nullable<Int32>,DBString,DBString,DBString,DBString,DBString,String) Method
- Last UpdatedNov 06, 2025
- 2 minute read
The UpdateSpecific() method updates selected columns of the specified specification record in the Spec table.
'Declaration
Public Overloads Shared Sub UpdateSpecific( _
ByVal sessionId As Integer, _
ByVal specId As String, _
ByVal units As String, _
ByVal grpId As String, _
ByVal displaySeq As Nullable(Of Integer), _
ByVal dataType As Nullable(Of Integer), _
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 specId As String
Dim units As String
Dim grpId As String
Dim displaySeq As Nullable(Of Integer)
Dim dataType As Nullable(Of Integer)
Dim spare1 As DBString
Dim spare2 As DBString
Dim spare3 As DBString
Dim spare4 As DBString
Dim lastEditComment As DBString
Dim modId As String
Spec.UpdateSpecific(sessionId, specId, units, grpId, displaySeq, dataType, spare1, spare2, spare3, spare4, lastEditComment, modId)
public static void UpdateSpecific(
int sessionId,
string specId,
string units,
string grpId,
Nullable<int> displaySeq,
Nullable<int> dataType,
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.
- specId
Required. Holds the ID of the specification.
- units
Optional. Holds the unit of measure for the specification value.
- grpId
Optional. Holds the ID of the spec group of which this specification is a member.
- displaySeq
Optional. Holds the specification's display sequence number within its spec group. This number determines the order in which specifications appear in the spec group in the user interface.
- dataType
Optional. Holds the enumeration that indicates the data type of the specification value.
0 = string (the default)
1 = floating point number
- 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 comments that describe why this record is being updated.
- modId
Required. Holds the modification ID assigned the last time this record was added or last updated, for optimistic concurrency control. The passed value must match the record's modId for the record to be updated.
Output. Holds the new modification ID to identify this update of this record.
Observe the following input parameter rules:
- Optional non-DB* parameters: Either enter a new value or leave the existing value unchanged by passing a null.
- Optional DB* parameters: To clear the existing value and enter an empty value, pass DB*.null (e.g., DBInt.null). To leave the existing value unchanged, pass a null.