Update(Int32,String,DBString,String,String,Int32,Int32,DBString,DBString,DBString,DBString,DBString,String) Method
- Last UpdatedNov 06, 2025
- 2 minute read
The Update() method updates all columns of the specified specification record in the Spec table.
This overload of the method includes the specDescription parameter.
'Declaration
Public Overloads Shared Sub Update( _
ByVal sessionId As Integer, _
ByVal specId As String, _
ByVal specDescription As DBString, _
ByVal units As String, _
ByVal grpId As String, _
ByVal displaySeq As Integer, _
ByVal dataType As 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 specDescription As DBString
Dim units As String
Dim grpId As String
Dim displaySeq As Integer
Dim dataType As 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.Update(sessionId, specId, specDescription, units, grpId, displaySeq, dataType, spare1, spare2, spare3, spare4, lastEditComment, modId)
public static void Update(
int sessionId,
string specId,
DBString specDescription,
string units,
string grpId,
int displaySeq,
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.
- specDescription
Required. Holds the description of the specification.
- units
Required. Holds the unit of measure for the specification value.
- grpId
Required. Holds the ID of the spec group of which this specification is a member.
- displaySeq
Required. 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
Required. Holds the enumeration that indicates the data type of the specification value.
0 = string (the default)
1 = floating point number
- 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 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. If it is specified, 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.