Data.DB.TParam.AsTime
[–] Properties | |
---|---|
Type: property | |
Visibility: public | |
Source: Data.DB.pas Data.DB.hpp
| |
Unit: Data.DB | |
Parent: TParam |
Delphi
property AsTime: TDateTime read GetAsDateTime write SetAsTime;
C++
__property System::TDateTime AsTime = {read=GetAsDateTime, write=SetAsTime};
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