SetTimeValue method

Delphi example

C++Builder example

 

Builder Syntax

int __fastcall SetTimeValue(Cardinal uCount);

Delphi Syntax

function SetTimeValue(uCount: Cardinal): Integer;

Overview

Refer to Working with Data Sets.

Remarks

Sets the specified number of time values from the TimeValues property into the item specified by the CurrentElement property.

Before calling this method, set the TimeValueCount property to the number of values you wish to set, and then fill the TimeValues 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 uCount is greater than the TimeValueCount 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_TM. For more information about Value Representations, refer to Default Value Representation Table.

See Also

Elements:

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