System.IniFiles.TCustomIniFile.ValueExists

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ValueExists(const Section, Ident: string): Boolean; virtual;

C++

virtual bool __fastcall ValueExists(const System::UnicodeString Section, const System::UnicodeString Ident);

Properties

Type Visibility Source Unit Parent
function public
System.IniFiles.pas
System.IniFiles.hpp
System.IniFiles TCustomIniFile

Description

Indicates whether a key exists in the ini file.

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.

See Also