Add(Int32,String,String,String,Nullable<Int32>,Nullable<Int32>,DBString,DBString,DBString,DBString,DBString,String) Method
- Last UpdatedNov 06, 2025
- 2 minute read
The Add() method adds a new specification record to the Spec table.
'Declaration
Public Overloads Shared Sub Add( _
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.Add(sessionId, specId, units, grpId, displaySeq, dataType, spare1, spare2, spare3, spare4, lastEditComment, modId)
public static void Add(
int sessionId,
string specId,
string units,
string grpId,
Nullable<int> displaySeq,
Nullable<int> dataType,
DBString spare1,
DBString spare2,
DBString spare3,
DBString spare4,
DBString lastEditComment,
out 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 added.
- modId
Output. Holds the modification ID assigned to this record when it is added. The modId parameter is used by other methods that modify or delete this type of record for optimistic concurrency control.
Observe the following input parameter rules:
- Required non-DB* parameters: Must pass a value. Cannot be empty or null.
- Optional non-DB* parameters: Either enter a value or pass a null. If passing a null and a default value has been defined, the default value will be used for the parameter.
- Required DB* parameters: Must pass a value. To enter an empty value for the parameter, pass DB*.null (e.g., DBInt.null).
- Optional DB* parameters: To enter no value for the parameter, pass DB*.null (e.g., DBInt.null). To use the default value for the parameter if one has been defined for the object being added, pass a null.