RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomIniFile.ValueExists Method

Indicates whether a key exists in the ini file.

Pascal
function ValueExists(const Section: string; const Ident: string): Boolean; virtual;
C++
virtual __fastcall Boolean ValueExists(const AnsiString Section, const AnsiString Ident);

Use ValueExists to determine whether a key exists in the ini file specified in FileName

Section is the section in the ini file in which to search for the key. 

Ident is the name of the key to search for. 

ValueExists returns a boolean value that indicates whether the key exists in the specified section. 

 

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