RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRegistry.WriteString Method

Stores a string value in a specifically named data value associated with the current key.

Pascal
procedure WriteString(const Name: string; const Value: string);
C++
__fastcall WriteString(const AnsiString Name, const AnsiString Value);

Call WriteString to store a string value in a data value associated with the current key. 

Name is a string containing the name of the data value in which to store data. If Name already exists, its current value is overwritten by WriteString. If Name does not exist, it is created. 

Value is a string value to store in the registry. 

If WriteString fails, an exception is raised, and the value is not written to the registry. 

 

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