CRegistry:Close


The Close method closes the registry key and deletes the instance of the CRegistry object. The delete and Close methods are equivalent. These two methods close the key opened using the new and Open methods, which also are equivalent.

Syntax

CRegistry:Close()

Example

 

R = CRegistry:Open("(Script) MyKey")

-- open the key named "(Script) MyKey".

  --

-- do something with the registry.

R:Close()

-- close the key and delete the CRegistry object.

Related Topics

Open

CRegistry class