DeleteVR Example for C++ 6.0 and later
short nCode;
short nRet;
nCode = 18771;
//move to the selected VR
m_pLEADDicomDS->FindVR(nCode);
//delete it
nRet = m_pLEADDicomDS->DeleteVR();
if(nRet != 0)
{
AfxMessageBox("Error");
return;
}