RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRegistry.ReadString Method

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

Pascal
function ReadString(const Name: string): string;
C++
__fastcall AnsiString ReadString(const AnsiString Name);

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.
 

 

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