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