GetByKey Method (ItemSubstitute)
- Last UpdatedNov 06, 2025
- 1 minute read
The GetByKey() method retrieves the specified item substitute record from the Item_Subst table.
'Declaration
Public Shared Function GetByKey( _
ByVal origItemId As String, _
ByVal altNo As Integer _
) As DataSet
'Usage
Dim origItemId As String
Dim altNo As Integer
Dim value As DataSet
value = ItemSubstitute.GetByKey(origItemId, altNo)
public static DataSet GetByKey(
string origItemId,
int altNo
)
Parameters
- origItemId
Required. Holds the ID of the item substitute that identifies the record to be retrieved.
- altNo
Optional. Holds an index to this item that is used to identify it as an substitute (alternate) for another item.
Return Value
Returns a DataSet that contains the DataRow of the specified item substitute in the Item_Subst table. If no matching record for the specified item substitute is found, an empty DataSet is returned.