Desktop User Guides > Professional > Interview scripting > Sample management > Sample management functions > RemoveSampleRec
 
RemoveSampleRec
Use this function to remove a sample record from a queue or from the sample table. This function is not called by UNICOM Intelligence Interviewer - Server directly.
Syntax
Function RemoveSampleRec(SampleRec)
Part
SampleRec
Input parameter of type SampleRec.
Example 1
The function in this example calls the Queues.RemoveSampleRec Queues.RemoveSampleRec method to remove the sample record from the sample table.
Function RemoveSampleRec(SampleRec)
  Queues.RemoveSampleRec SampleRec
  RemoveSampleRec = SUCCESS
End Function
Example 2
The function in this example calls the Queues.RemoveSampleRec Queues.RemoveSampleRec method to move the sample record into the DELETED queue rather than removing it from the sample table.
Function RemoveSampleRec(SampleRec)
  Queues.MoveSampleRec "DELETED", SampleRec
  RemoveSampleRec = SUCCESS
End Function
For more information about Queues.RemoveSampleRec, see Sample Management Object model.
See also
Sample management functions