DateValues property

Delphi example

C++Builder example

 

Builder Syntax

Ltvcltyp::VALUEDATE DateValues[Cardinal uIndex]

Delphi Syntax

DateValues[uIndex: Cardinal]: TValueDate

Overview

Refer to Working with Data Sets.

Remarks

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

The VALUEDATE record has the following fields:

Field

Type

Description

Day

Word 

The day.

Month

Word 

The month.

Year

Word 

The year.

 

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

If you are setting date values associated with the element specified in the CurrentElement property, you can set the DateValueCount property to allocate storage for the DateValues property, prior to setting the date values using SetDateValue.

Set the DateValueCount property to 0 at any time to free the memory used for the DateValues property.

See Also

Elements:

DateValueCount property, GetDateValue method, SetDateValue method