Data.DB.TParam.AsTime

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property AsTime: TDateTime read GetAsDateTime write SetAsTime;

C++

__property System::TDateTime AsTime = {read=GetAsDateTime, write=SetAsTime};

Properties

Type Visibility Source Unit Parent
property public
Data.DB.pas
Data.DB.hpp
Data.DB TParam

Description

Specifies the value of the parameter when it represents a time field.

Set AsTime to assign the value for a time field to the parameter. Setting AsTime sets the DataType property to ftTime.

Read the AsTime property to determine the value that was assigned to the parameter, represented as a DateTime. The value of the parameter is converted to a DateTime value if possible. If the DataType for the parameter is ftTime, only the time portion of the TDateTime value is valid.

Note: It is not possible to store a NULL value directly to a parameter using AsTime. Use the TParam . ::Clear method instead.

See Also

Code Examples