DeleteElement Example for VB.NET
'LEADDICOM1 is a DICOM Dataset defined outside this method
Private Sub TestDeleteElement()
Dim nRet As Short
LEADDICOM1.EnableMethodErrors = False
LEADDICOM1.FindFirstElement(LTDICLib.DicomDataSetTagConstants1.TAG_STUDY_DATE, False)
nRet = LEADDICOM1.DeleteElement
LEADDICOM1.EnableMethodErrors = True
If (nRet <> 0) Then
MessageBox.Show("Error Deleting Element!")
End If
End Sub