From Appmethod Libraries
Jump to: navigation, search

Object Pascal

property AsTime: TDateTime read GetAsDateTime write SetAsTime;


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


Type Visibility Source Unit Parent
property public
Data.DB TParam


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