DeleteModule Example for C++Builder
int nRet;
LEADDicom1->EnableMethodErrors = false;
/* move to the first module in the DataSet and delete it */
LEADDicom1->FindIndexModule(0);
nRet = LEADDicom1->DeleteModule(LEADDicom1->CurrentModule->Module);
if(nRet != SUCCESS)
ShowMessage("Error Deleting Module!");
LEADDicom1->EnableMethodErrors = true;