| LEADTOOLS DICOM C DLL Help > Function References > L_DicomGetLastVR | 
#include "Ltdic.h"
L_LTDIC_API pDICOMVR L_DicomGetLastVR()
Returns a pointer to the last item in the Value Representation Table.
Returns
| !NULL | A pointer to a DICOMVR structure that contains the last item in the Value Representation Table. | 
| NULL | The table is empty. | 
Comments
The following functions will also help you navigate the Value Representation Table:
To determine the number of entries in the Value Representation Table, use L_DicomGetCountVR.
Required DLLs and Libraries
| For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application | 
Win32, x64, Linux.
See Also
| Functions: | L_DicomGetFirstVR, L_DicomGetPrevVR, L_DicomGetNextVR, L_DicomGetCountVR | 
| Topics: | 
Example
This example displays in a list-box control all items from the VR table
L_INT DicomGetLastVRExample(HWND hDlg)
{
   pDICOMVR pVR;
   pVR = L_DicomGetLastVR();
   while (pVR != NULL)
   {
      SendMessage(hDlg, LB_ADDSTRING, (WPARAM)0, (LPARAM)(LPCTSTR)pVR->pszName);
      pVR = L_DicomGetPrevVR(pVR);
   }
   return DICOM_SUCCESS;
}