DeleteElement Example for C++Builder
int nRet;
LEADDicom1->EnableMethodErrors = false;
nRet = LEADDicom1->FindFirstElement(TAG_STUDY_DATE, false);
if(nRet != SUCCESS)
{
ShowMessage("Error Finding Element!");
return;
}
nRet = LEADDicom1->DeleteElement();
LEADDicom1->EnableMethodErrors = true;
if(nRet != SUCCESS)
ShowMessage("Error Deleting Element!");