RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRegistry.ReadTime Method

Retrieves a time value from a specified data value associated with the current key.

Pascal
function ReadTime(const Name: string): TDateTime;
C++
__fastcall TDateTime ReadTime(const AnsiString Name);

Call ReadTime to read a time value from a specified data value associated with the current key. Name is the name of the data value to read. 

If successful, ReadTime returns a TDateTime value. The integral part of a TDateTime value is the number of days that have passed since 12/30/1899. The fractional part of a TDateTime value is the time of day. 

If the specified Registry entry does not contain a date or time value, an exception is raised.

Note: Only use ReadTime to read data values previously stored with the WriteTime method.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!