SetTagName Example for C++Builder

LEADDicom1->EnableMethodErrors = true;
try
{
   /* move to the selected Tag */
   LEADDicom1->FindIndexTag(12);
   ShowMessage("Original Tag name: " + LEADDicom1->CurrentTag->Name);
   /* change the name */
   LEADDicom1->SetTagName("New Tag Name");
   ShowMessage("Modified Tag name: " + LEADDicom1->CurrentTag->Name);
}
catch(ELEADDicomError *e)
{
   ShowMessage("Error Number: " + IntToStr(LEADDicom1->Error));
}