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