Send Topic Feedback | See Object Hierarchy Chart
PC-DMIS 2022.2 Object Library
PCDLRN ActiveX DLL > Application Object : WriteRegistryDWORD Method
String value that specifes the section in which the settings entry that you want to modify resides.
String value that specifies the settings entry to which you want to write the value.
Long value to write to the settings entry.
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 settings entries pertaining to feature ID prefixes.
WriteRegistryDWORD Method
Description
Sets a PC-DMIS settings entry to a specified long value.
Syntax
Visual Basic
Public Function WriteRegistryDWORD( _
   ByVal lpszSection As String, _
   ByVal lpszEntry As String, _
   ByVal dwValue As Long, _
   ByVal bSetVariable As Boolean _
) As Boolean
Parameters
lpszSection
String value that specifes the section in which the settings entry that you want to modify resides.
lpszEntry
String value that specifies the settings entry to which you want to write the value.
dwValue
Long value to write to the settings 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 settings entries pertaining to feature ID prefixes.
Return Type
Boolean value that determines whether or not the value of the third parameter was successfully written to the settings entry.
Example

' This code sample sets an auto circle’s hits to the long value of 4.

Dim myapp As New PCDLRN.Application

Set myapp = CreateObject("pcdlrn.application")

myval = myapp.WriteRegistryDWORD("AutoFeatures", "DccCirNumHits", 4, True)

See Also