GetByKey Method (ShiftPattern)
- Last UpdatedNov 06, 2025
- 1 minute read
The GetByKey() method retrieves the specified shift pattern record from the Shift_Pattern table.
'Usage
Dim patternId As Integer
Dim value As DataSet
value = ShiftPattern.GetByKey(patternId)
Parameters
- patternId
- Required. Holds the shift pattern ID.
Return Value
Returns a DataSet that contains the DataRow of the specified shift pattern in the Shift_Pattern table. If no matching record for the specified shift pattern is found, an empty DataSet is returned.