API:System.Win.Registry.TRegIniFile.WriteString
Delphi
procedure WriteString(const Section, Ident, Value: string);
C++
HIDESBASE void __fastcall WriteString(const System::UnicodeString Section, const System::UnicodeString Ident, const System::UnicodeString Value);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Win.Registry.pas System.Win.Registry.hpp |
System.Win.Registry | TRegIniFile |
Description
Stores a string value in a specifically named data value associated with the current key.
System.Win.Registry.TRegIniFile.WriteString inherits from System.Win.Registry.TRegistry.WriteString. All content below this line refers to System.Win.Registry.TRegistry.WriteString.
Stores a string value in a specifically named data value associated with the current key.
Call WriteString to store a string 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 WriteString. If Name does not exist, it is created.
Value is a string value to store in the registry.
If WriteString fails, an exception is raised, and the value is not written to the registry.
See Also
Code Examples