Send Topic Feedback | See Object Hierarchy Chart
PC-DMIS 2023.2 Object Library
PCDLRN ActiveX DLL > Application Object : WriteRegistrySettings Method
WriteRegistrySettings Method
Description

Writes the current PC-DMIS settings entries and their values to the debug.txt file. 

Syntax
Visual Basic
Public Sub WriteRegistrySettings() 
Remarks

The debug file is a text file with a default name of debug.txt

When you have PC-DMIS set up to write data to this text file, you can use it to keep track of every action of PC-DMIS. This is useful data to give to Technical Support so that they can track down possible bugs or problems you may be encountering inside of PC-DMIS.

When you run a script with this method, all the settings entries get appended to the end of your debug file. You will see a line that says:

//// Start of registry settings ////

Following this line you will find all the settings entries and their values. After the final entry, PC-DMIS shows this line:

//// End of registry settings ////

This file is located in this directory:

  • XP:
    C:\Documents and Settings\All Users\Application Data\WAI\PC-DMIS\<version>

  • Vista/7:
    C:\ProgramData\WAI\PC-DMIS\<version>

Example

' This code sample writes all of PC-DMIS’s settings entries and their values to the debug.txt file:

Dim myapp As New PCDLRN.Application

Set myapp = CreateObject("pcdlrn.application")

myapp.WriteRegistrySettings

See Also