CRegistry Class Description CRegistry:delete

new_registry


The new_registry function is a non-class version of the CRegistry:new method which creates and returns a new CRegistry object.

Syntax

R = new_registry()

bullet.gif    Creates a new CRegistry object without specifying a key name. You must follow this with R:Open to open a named registry key.

R = new_registry( sKeyName )

bullet.gif    Creates a new CRegistry object and opens the named key.

R = new_registry( CRegistry_old )

bullet.gif    This is a copy constructor. It opens a new CRegistry R initialized to the key used by CRegistry_old.

bullet.gif    On failure, nil is returned.

Example

The following script creates a new CRegistry object:

R = new_registry("MyKey")

-- create a registry object R and open the named key.

  ...

-- other uses of the class go here

R:delete()

-- delete the object.

Related Topics

CRegistry class, new, delete


Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.