System.Win.Registry.TRegistry.WriteString

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

procedure WriteString(const Name, Value: string);

C++

void __fastcall WriteString(const System::UnicodeString Name, const System::UnicodeString Value);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Win.Registry.pas
System.Win.Registry.hpp
System.Win.Registry TRegistry

Description

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