PC-DMIS 2021.2 Object Library
WriteRegistryDouble Method
See Also  Send Topic Feedback | See Object Hierarchy Chart
lpszSection
String value that specifes 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.
dValue
Double 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.
PCDLRN ActiveX DLL > Application Object : WriteRegistryDouble Method

Glossary Item Box

Description

Sets a PC-DMIS registry entry to a specified Double value.

Syntax

Visual Basic
Public Function WriteRegistryDouble( _
   ByVal lpszSection As String, _
   ByVal lpszEntry As String, _
   ByVal dValue As Double, _
   ByVal bSetVariable As Boolean _
) As Boolean

Parameters

lpszSection
String value that specifes 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.
dValue
Double 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.

Return Type

Boolean value that determines whether or not the value of the third parameter was successfully written to the registry entry.

Example

' This code sample sets an analog probe’s lower force to the double value of 0.04.

Dim myapp As New PCDLRN.Application

Set myapp = CreateObject("pcdlrn.application")

myval = myapp.WriteRegistryDouble("ANALOG_PROBING", "ProbeLowerForce", 0.04, True)

See Also

Copyright © 2021. Hexagon Manufacturing Intelligence – Metrology Software, Inc. All Rights Reserved.