ReadRegMulti

Description:

baReadRegMulti gets a multi string value from the Windows Registry.

Platforms:

Windows

Usage:

Result = baReadRegBinary( KeyName, ValueName, Default, Branch )

Arguments:

String, string, string, string.
KeyName is the name of the key.
ValueName is the name of the value.
Default is the string that is returned if the key/value doesn't exist.
Branch is the branch of the registry to use. Can be one of the following:
    "HKEY_CLASSES_ROOT"
    "HKEY_CURRENT_USER"
    "HKEY_LOCAL_MACHINE"
    "HKEY_USERS"
    "HKEY_CURRENT_USER"
    "HKEY_DYN_DATA"

Returns:

List.
Returns a list containing the strings stored in Keyname. If the Keyname doesn't exist, then the return will be a list containing just the Default value.

Examples:

Director:
data = baReadRegMulti( "Courses\Computers", "Data", "error, "HKEY_CLASSES_ROOT" )

Authorware:
data := baReadRegMulti( "Courses\\Computers", "Data", "error", "HKEY_CLASSES_ROOT" )
 

Notes:

The multi string type of registry entry consists of a series of strings.

The return will a list containing the string values. eg:

[ "date", "20011121, "time", "231823" ]

If the key does not exist, then a list with the default value (as a string) as its only entry will be returned, eg:

["error"]

A Registry entry consists of keys and sub-keys, similar to the directories and sub-directories in the Windows file system. These can be thought of as files within the key.
 

See also:

baWriteRegMulti
baWriteRegBinary
baReadRegString
baWriteRegString
baReadRegNumber
baWriteRegNumber
baReadRegMulti
baWriteRegMulti
baDeleteReg
baRegKeyList
baRegValueList