IncludeVolatile Example for C++ Builder
int nRet;
LEADDicom1->EnableMethodErrors = False;
/* list all elements */
LEADDicom1->IncludeVolatile = True;
nRet = LEADDicom1->MoveFirstElement(False);
Memo1->Lines->Clear();
while(nRet == SUCCESS)
{
Memo1->Lines->Add(IntToStr(LEADDicom1->CurrentElement->Tag));
nRet = LEADDicom1->MoveNextElement(False);
}
ShowMessage("Element Count = " + IntToStr(Memo1->Lines->Count));
/* list only non-volatile elements */
LEADDicom1->IncludeVolatile = False;
nRet = LEADDicom1->MoveFirstElement(False);
Memo1->Lines->Clear();
while(nRet == SUCCESS)
{
Memo1->Lines->Add(IntToStr(LEADDicom1->CurrentElement->Tag));
nRet = LEADDicom1->MoveNextElement(False);
}
ShowMessage("Non Volatile Element Count = " + IntToStr(Memo1->Lines->Count));