Sets a PC-DMIS registry entry to a TRUE or FALSE value.
Visual Basic |
---|
Public Function WriteRegistryBool( _ ByVal lpszSection As String, _ ByVal lpszEntry As String, _ ByVal bValue As Boolean, _ ByVal bSetVariable As Boolean _ ) As Boolean |
- lpszSection
- String value that specifies the section in which the registry entry that you want to modify resides.
- lpszEntry
- String value that specifies the entry to which you want to write the value.
- bValue
- Boolean value to write to the registry entry.
- bSetVariable
- Boolean value that determines whether or not an associated global variable in PC-DMIS gets changed to the value of the third parameter. This parameter only works for registry entries pertaining to feature ID prefixes.
Boolean value that determines whether or not the value of the third parameter was successfully written to the registry entry.
' This code sample turns off PC-DMIS’s start up music:
Dim myapp As New PCDLRN.Application
Set myapp = CreateObject("pcdlrn.application")
myval = myapp.WriteRegistryBool("Option", "TurnOffTheAnnoyingStartupMusic", False, True)