SetAgeValue method (ILEADDicomDS)

VB.NET example

C# example

Visual Basic example

Visual C++ 6.0 example

 

Syntax

short SetAgeValue ( long lCount );

Overview

Refer to Working with Tags.

Remarks

Sets the specified number of age values from the AgeValues property into the item specified by the CurrentElement property.

Before calling this method, set the AgeValueCount property to the number of values you wish to set, and then fill the AgeValues property with the desired values.

If more than one value is stored in the Value Field of the Data Element, you must set all values at the same time.

If lCount is less than 0 or greater than the AgeValueCount property, an error is returned.

This method overwrites the values associated with the item specified by the CurrentElement property.

This function can be called only if the Value Representation of the Data Element is VR_AS. For more information about Value Representations, refer to Default Value Representation Table.

See Also

Elements:

SetCharValue method, SetShortValue method, SetLongValue method, SetFloatValue method, SetDoubleValue method, SetStringValue method, SetBinaryValue method, SetDateValue method, SetTimeValue method, SetDateTimeValue method

Topics:

Data Sets: Getting and Setting Data Element Values