RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRegistry.CloseKey Method

Writes the current key to the registry and closes the key.

Pascal
procedure CloseKey;
C++
__fastcall CloseKey();

Call CloseKey to write the current key to the registry and close the key. An application should not keep keys open any longer than necessary. Many TRegistry methods routinely call CloseKey after reading from or writing to the registry. Calling CloseKey when there is no current key has no effect.

Note: When an application closes a key, the key is written to the registry. The LazyWrite property determines how the write takes place.
 

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