RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRegistry.WriteBool Method

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

Pascal
procedure WriteBool(const Name: string; Value: Boolean);
C++
__fastcall WriteBool(const AnsiString Name, Boolean Value);

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. 

 

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