Update(Int32,Int32,Int32,DBString,Double,Double,DBString,DBString,DBString,DBString,DBString,Int32,DateTime) Method
- Last UpdatedNov 06, 2025
- 2 minute read
The Update() method updates all columns of the specified uom conversion record in the Uom_Conv table.
This overload of the method includes spare field parameters for updating user-defined content to the record.
'Declaration
Public Overloads Shared Sub Update( _
ByVal sessionId As Integer, _
ByVal fromUomId As Integer, _
ByVal toUomId As Integer, _
ByVal itemId As DBString, _
ByVal factor As Double, _
ByVal offset As Double, _
ByVal spare1 As DBString, _
ByVal spare2 As DBString, _
ByVal spare3 As DBString, _
ByVal spare4 As DBString, _
ByVal lastEditComment As DBString, _
ByVal rowId As Integer, _
ByRef lastEditAt As Date _
)
'Usage
Dim sessionId As Integer
Dim fromUomId As Integer
Dim toUomId As Integer
Dim itemId As DBString
Dim factor As Double
Dim offset As Double
Dim spare1 As DBString
Dim spare2 As DBString
Dim spare3 As DBString
Dim spare4 As DBString
Dim lastEditComment As DBString
Dim rowId As Integer
Dim lastEditAt As Date
UomConv.Update(sessionId, fromUomId, toUomId, itemId, factor, offset, spare1, spare2, spare3, spare4, lastEditComment, rowId, lastEditAt)
public static void Update(
int sessionId,
int fromUomId,
int toUomId,
DBString itemId,
double factor,
double offset,
DBString spare1,
DBString spare2,
DBString spare3,
DBString spare4,
DBString lastEditComment,
int rowId,
ref DateTime lastEditAt
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- fromUomId
- Required. Holds the ID of the starting unit of measure.
- toUomId
- Required. Holds the ID of the resulting unit of measure.
- itemId
- Required. Holds the ID of the item for which the conversion is valid. The value in the database can be set to null by passing DBString.Null.
- factor
- Required. Holds the factor by which the quantity is multiplied. This may not be zero.
- offset
- Required. Holds the offset added to the multiplied quantity to obtain the final result.
- spare1
- Required. Holds new content for the spare1 field.
- spare2
- Required. Holds new content for the spare2 field.
- spare3
- Required. Holds new content for the spare3 field.
- spare4
- Required. Holds new content for the spare4 field.
- lastEditComment
- Required. Holds comments that describe why this record is being updated.
- rowId
- Required. Holds the ID of the row to be updated.
- 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.