Skip to main content

queryRegistry

Type​

function

Summary​

The queryRegistry function returns the value of an entry in the Windows system registry.

Syntax​

the queryRegistry of <keyPath>
queryRegistry(<keyPath> [, <typeVariable>])

Description​

Use the queryRegistry function to get system settings on a Windows system.

The first part of the keyPath should be one of the predefined handle values. If the keyPath ends in "\", the value returned is the default value for the key.

If you specify a typeVariable, the type of the data in the registry entry is placed in that variable.

tip

To convert binary data you get from the registry to a string, use the binaryDecode function.

On Mac OS, OS X, and Unix systems, the queryRegistry function returns "not supported".

Parameters​

NameTypeDescription

keyPath

The keyPath parameter is the path to a registry entry.

typeVariable

Any legal variable name.

Examples​

queryRegistry("HKEY_CLASSES_ROOT\.rev\")
queryRegistry(winFilePath,myType)

Value​

NameTypeDescription

return

The queryRegistry function returns a string.

keyword: default, string

control structure: function

function: deleteRegistry, value, binaryDecode, MCISendString

glossary: binary file, variable, Windows, return, registry, value

Compatibility and Support​

Introduced

LiveCode 1.0

OS

windows

Platforms

desktop

server

Thank you for your feedback!

Was this page helpful?