TimeValues property

Delphi example

C++Builder example

 

Builder Syntax

TValueTime* TimeValues[Cardinal uIndex]

Delphi Syntax

TimeValues[uIndex: Cardinal]: TValueTime

Overview

Refer to Working with Data Sets.

Remarks

Contains an array of time values retrieved from or set to the Data Element specified by the CurrentElement property. The size of this array is determined by the TimeValueCount property.

The TValueTime class has the following properties:

Property

Type

Description

Fractions

Cardinal

Fraction of a second.

Hours

Word

Hours

Minutes

Word

Minutes

Seconds

Word

Seconds

 

If you are retrieving time values associated with the element specified in the CurrentElement property, calling the GetTimeValue method updates this property with the time values associated with the specified element.

If you are setting time values associated with the element specified in the CurrentElement property, you can set the TimeValueCount property to allocate storage for the TimeValues property, prior to setting the date values using SetTimeValue.

Set the TimeValueCount property to 0 at any time to free the memory used for the TimeValues property.

See Also

Elements:

TimeValueCount property, GetTimeValue method, SetTimeValue method