RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRegistry.WriteTime Method

Stores a time value in a specifically named data value associated with the current key.

Pascal
procedure WriteTime(const Name: string; Value: TDateTime);
C++
__fastcall WriteTime(const AnsiString Name, TDateTime Value);

Call WriteTime to store a datetime value in a data value associated with the current key. 

Name is a string containing the name of the data value in which to store data. If Name already exists, its current value is overwritten by WriteTime. If Name does not exist, it is created. 

Value is a datetime value to store in the registry. 

If WriteTime fails, an exception is raised, and the value is not written to the registry. 

If successful, WriteTime stores 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. 

 

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