API:System.Win.Registry.TRegIniFile.ReadString

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ReadString(const Section, Ident, Default: string): string;

C++

HIDESBASE System::UnicodeString __fastcall ReadString(const System::UnicodeString Section, const System::UnicodeString Ident, const System::UnicodeString Default);

Properties

Type Visibility Source Unit Parent
function public
System.Win.Registry.pas
System.Win.Registry.hpp
System.Win.Registry TRegIniFile

Description

Retrieves a string value from a specified data value associated with the current key.

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

Retrieves a string value from a specified data value associated with the current key.

Call ReadString to read a string value from a specified data value associated with the current key. Name is the name of the data value to read.

If there is no Registry entry with the specified name, ReadString returns an empty string. If the Registry entry contains something other than a string, an exception is raised.

Note: ReadString retrieves data stored by either the WriteString or WriteExpandString method.

See Also