WriteRegNumber

Description:

baWriteRegNumber writes a number into the Windows Registry.

Platforms:

Windows

Usage:

Result = baWriteRegNumber( KeyName, ValueName, NewData, Branch )

Arguments:

String, string, integer, string.
KeyName is the name of the key.
ValueName is the name of the value.
NewData is the number that will be written to the registr
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 1 if the function is successful, otherwise 0.

Examples:

Director:
OK = baWriteRegNumber( "Courses\Computers", "Course", 101 , "HKEY_CLASSES_ROOT" )

Authorware:
OK := baWriteRegNumber( "Courses\\Computers", "Course", 101 , "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
baReadRegNumber
baReadRegBinary
baWriteRegBinary
baReadRegMulti
baWriteRegMulti
baDeleteReg
baRegKeyList
baRegValueList