System.Win.Registry.TRegistry.RenameValue

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure RenameValue(const OldName, NewName: string);

C++

void __fastcall RenameValue(const System::UnicodeString OldName, const System::UnicodeString NewName);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Win.Registry.pas
System.Win.Registry.hpp
System.Win.Registry TRegistry

Description

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

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.

See Also