L_DicomSetNameVR

#include "Ltdic.h"

L_BOOL EXT_FUNCTION L_DicomSetNameVR(pVR, pszName)

pDICOMVR pVR;

/* pointer to a DICOMVR structure */

L_CHAR * pszName;

/* character string */

Sets the name of the specified item in the Value Representation Table.

Parameter

Description

pVR

Pointer to a structure that contains an item in the Value Representation Table. The name of this item will be set using the string contained in pszName.

pszName

Character string that contains the name to be set.

Returns

TRUE

The name was successfully set.

FALSE

Not enough memory.

Required DLLs and Libraries

LTDIC

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

See Also

Functions:

L_DicomGetFirstVR, L_DicomGetLastVR, L_DicomGetPrevVR, L_DicomGetNextVR, L_DicomFindVR, L_DicomFindIndexVR

Topics:

Working with Value Representations

Example

/* This example changes the name of an item in the VR table */

L_VOID Test()
{
   pDICOMVR pVR;

   pVR = L_DicomFindVR(VR_AE);
   if (pVR != NULL)
   {
      L_DicomSetNameVR(pVR, "New name");
   }
}