RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRegistry.WriteInteger Method

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

Pascal
procedure WriteInteger(const Name: string; Value: Integer);
C++
__fastcall WriteInteger(const AnsiString Name, int Value);

Call WriteInteger to store an integer 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 WriteInteger. If Name does not exist, it is created. 

Value is a integer value to store in the registry. 

If WriteInteger 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!