ReadRegNumber

Description:

baReadRegNumber gets a number from the Windows Registry.

Platforms:

Windows

Usage:

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

Arguments:

String, string, integer, 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:

Integer.
Returns the value associated with the Keyname. If the Keyname doesn't exist, then the return will be the Default value.

Examples:

Director:
Name = baReadRegNumber( "Courses\Computers", "Course", 0, "HKEY_CLASSES_ROOT" )

Authorware:
Name := baReadRegNumber( "Courses\\Computers", "Course", 0, "HKEY_CLASSES_ROOT" )
 

Notes:

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

See also:

baReadRegString
baWriteRegString
baWriteRegNumber
baReadRegBinary
baWriteRegBinary
baReadRegMulti
baWriteRegMulti
baDeleteReg
baRegKeyList
baRegValueList