InsertElement Example for C++Builder

   int nRet;

   LEADDicom1->EnableMethodErrors = false;
   /* insert the new element */
   LEADDicom1->FindTag(TAG_DISCHARGE_DATE);
   nRet = LEADDicom1->InsertElement(false, TAG_DISCHARGE_DATE, LEADDicom1->CurrentTag->VR, false, ELEMENT_INDEX_MAX);
   if(nRet != SUCCESS)
      ShowMessage("Error Inserting Element");
   else
      ShowMessage("Inserted Element: " + LEADDicom1->CurrentTag->Name);
   LEADDicom1->EnableMethodErrors = true;