Registry_GetValue

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > Registry >

Registry_GetValue

 

Description

 

Get a string registry value.

 

Syntax

 

s = Registry_GetValue(HKEY, MainKey, KeyName)

 

Returns

 

String.

 

Parameters

 

Name

Type

Optional

Meaning

HKEY

String

No

Can be one of the following strings:

"HKEYCR"        (%HKEY_CLASSES_ROOT)

"HKEYCU"        (%HKEY_CURRENT_USER)

"HKEYLM"        (%HKEY_LOCAL_MACHINE)

"HKEYU"        (%HKEY_USERS)

"HKEYCC"        (%HKEY_CURRENT_CONFIG)

MainKey

String

No

The requested key path

KeyName

String

No

Name of the value to query

 

Remarks

 

Restrictions

 

See also

 

Examples

 

USES "Registry"

 

DIM MyValue AS STRING

MyValue = Registry_GetValue("HKEYLM""Software\thinBasic""InstallPath")

 

MsgBox 0, MyValue