DeleteUID Example for C++Builder

   AnsiString sCode;

   LEADDicom1->EnableMethodErrors = true;
   try
   {
      sCode = "1.2.840.10008.1.2";
      /* move to the selected UID */
      LEADDicom1->FindUID(sCode);
      /* delete it */
      LEADDicom1->DeleteUID();
   }
   catch(ELEADDicomError *e)
   {
      ShowMessage("Error Number: " + IntToStr(LEADDicom1->Error));
   }