PC-DMIS 2019 R2 Object Library
WriteRegistryString Method
See Also  Send Topic Feedback | See Object Hierarchy Chart
lpszSection
String value that specifies the section in which the registry entry that you want to modify resides.
lpszEntry
String that specifies the entry to which you want to write the value.
lpszValue
String 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 : WriteRegistryString Method

Glossary Item Box

Description

This writes a specified string value to a valid PC-DMIS registry entry. Write String.

Syntax

Visual Basic
Public Function WriteRegistryString( _
   ByVal lpszSection As String, _
   ByVal lpszEntry As String, _
   ByVal lpszValue As String, _
   ByVal bSetVariable As Boolean _
) As Boolean

Parameters

lpszSection
String value that specifies the section in which the registry entry that you want to modify resides.
lpszEntry
String that specifies the entry to which you want to write the value.
lpszValue
String 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

' The following code sample, sets the PC-DMIS password for the Setup Options dialog box to the string: "PCDMIS007".

Dim myapp As New PCDLRN.Application

Set myapp = CreateObject("pcdlrn.application")

myval = myapp.WriteRegistryString("Option", "Password", "PCDMIS007", True)

See Also

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