API:System.Win.Registry.TRegIniFile.WriteBool

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure WriteBool(const Section, Ident: string; Value: Boolean);

C++

HIDESBASE void __fastcall WriteBool(const System::UnicodeString Section, const System::UnicodeString Ident, bool 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 Boolean value in a specifically named data value associated with the current key.

System.Win.Registry.TRegIniFile.WriteBool inherits from System.Win.Registry.TRegistry.WriteBool. All content below this line refers to System.Win.Registry.TRegistry.WriteBool.

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

Call WriteBool to store a boolean 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 WriteBool. If Name does not exist, it is created.

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

See Also