GetByKey Method (SubLotLevelDesc)
- Last UpdatedNov 06, 2025
- 1 minute read
The GetByKey() method retrieves a single row from the Sublot_Level_Desc table using the specified primary key fields.
'Declaration
Public Shared Function GetByKey( _
ByVal itemId As String, _
ByVal level As Integer _
) As DataSet
'Usage
Dim itemId As String
Dim level As Integer
Dim value As DataSet
value = SubLotLevelDesc.GetByKey(itemId, level)
Parameters
- itemId
Required. Holds the ID of the item that identifies the record to be retrieved.
- level
Required. Holds the sublot level that identifies the record to be retrieved.
Return Value
Returns a DataSet that contains the DataRow of the specified sublot level description in the Sublot_Level_Desc table. If no matching record for the specified sublot level description is found, an empty DataSet is returned.