DeleteVR Example for C++Builder
try
{
LEADDicom1->EnableMethodErrors = true;
/* move to the selected VR */
LEADDicom1->FindVR(VR_IS);
/* delete it */
LEADDicom1->DeleteVR();
}
catch(ELEADDicomError *e)
{
ShowMessage("Error Number: " + IntToStr(LEADDicom1->Error));
}