RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomIniFile.WriteBool Method

Writes a Boolean value to an ini file.

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

Call WriteBool to write a Boolean 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 Boolean 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, WriteBool creates the section and key and sets its initial value to Value.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!