REGISTRY.SAVE_SETTINGS()

Syntax

:REGISTRY.SAVE_SETTINGS( Registry_Key as C, Dot_Variable as C )

Argument

Description

Registry_Key

The name of a registry entry.

Dot_Variable

A dot variable.

Description

The REGISTRY.SAVE_SETTINGS() method saves all of the sub-elements of a "dot" variable (called Dot_Variable ) in the Registry under the key Registry_Key (which is relative to the root key).

The root key is for Alpha Five Version 5:

HKEY_CURRENT_USER\Software\Alpha Software\Alpha Five 5.0

The root key is for Alpha Five Version 6:

HKEY_CURRENT_USER\Software\Alpha Software\Alpha Five 6.0

The root key is for Alpha Five Version 7:

HKEY_CURRENT_USER\Software\Alpha Software\Alpha Five 7.0

Examples

Store UserIdentity variable (with its sub-elements) into the Registry under Registry key of UserIdentity.

'define the UserIdentity variable

UserIdentity.Firstname = "John"

UserIdentity.Lastname = "Smith"

UserIdentity.Company = "Alpha Software"

UserIdentity.Address = "131 Middlesex Tpke"

UserIdentity.City = "Burlington"

UserIdentity.State = "MA"

UserIdentity.Zip = "01803"

UserIdentity.Phone = "781-229-2924"

'Save settings in Registry

:registry.save_settings("UserIdentity", useridentity)

'The following examples saves the same variable under a

'different key

:registry.save_settings("MySpecialKey",useridentity)

See Also

Registry Methods

Supported By

Alpha Five Version 5 and Above