Xbasic

REGISTRY.LOAD_SETTINGS Function

Syntax

V REGISTRY.LOAD_SETTINGS(C Registry_Key,P settings)

Arguments

Registry_KeyCharacter

The name of a registry entry.

settingsPointer

The variable where settings will be stored after reading them from the registry.

Description

Load settings from the registry.

Discussion

The REGISTRY.LOAD_SETTINGS() method reads variables from the Registry and stores them in the settings variable passed to the function. Registry entries are read from the Registry_Key entry, which is relative to the root key.

The root key is for Alpha Anywhere:

HKEY_CURRENT_USER\Software\Alpha Software\Alpha Anywhere 12.0

Example 

Read values from the registry key "preferences" and store in a variable called settings.

DIM settings as P
DIM regSetting as c = "preferences"
REGISTRY.LOAD_SETTINGS(regSetting,settings)

See Also