DateTimeValues property

Delphi example

C++Builder example

 

Builder Syntax

TValueDateTime* DateTimeValues[Cardinal uIndex]

Delphi Syntax

DateTimeValues[uIndex: Cardinal]: TValueDateTime

Overview

Refer to Working with Data Sets.

Remarks

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

The TValueDateTime class has the following properties:

Property

Type

Description

Century

Word

The century.

Day

Word

The day.

Fractions

Cardinal

The fraction of a second.

Hours

Word

The hours.

Minutes

Word

The minutes.

Month

Word

The month.

Offset

Cardinal

The optional suffix for plus/minus from Coordinated Universal Time.

Seconds

Word

The seconds.

Year

Word

The year.

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

If you are setting date-time values associated with the element specified in the CurrentElement property, you can set the DateTimeValueCount property to allocate storage for the DateTimeValues property, prior to setting the date-time values using SetDateTimeValue.

Set the DateTimeValueCount property to 0 at any time to free the memory used for the DateTimeValues property.

See Also

Elements:

DateTimeValueCount property, GetDateTimeValue method, SetDateTimeValue method