RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRegistryIniFile.WriteDateTime Method

Writes a date-time value to an INI file.

Pascal
procedure WriteDateTime(const Section: string; const Name: string; Value: TDateTime); override;
C++
virtual __fastcall WriteDateTime(const AnsiString Section, const AnsiString Name, TDateTime Value);

Call WriteDateTime to write a date-time value to an INI file. Section identifies the section in the file that contain the key to which to write. Ident is the name of the key for which to set a value. Value is the date-time value to write.

Note: Attempting to write a data value to a nonexistent section or attempting to write data to a nonexistent key are not errors. In these cases, WriteDateTime creates the section and key and sets its initial value to Value.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!