RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRegistry.RenameValue Method

Changes the name of a data value associated with the current key.

Pascal
procedure RenameValue(const OldName: string; const NewName: string);
C++
__fastcall RenameValue(const AnsiString OldName, const AnsiString NewName);

Call RenameValue to change the name of a data value associated with the current key. OldName is a string containing the current name of the data value. NewName is a string containing the replacement name for the data value. 

If OldName is the name of an existing data value for the current key, and NewName is not the name of an existing data value for the current key, RenameValue changes the data value name as specified. Otherwise the current name remains unchanged. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!