PC-Dmis 2010 MR3 Object Library | Send comments on this topic. | See Object Hierarchy Chart
WriteRegistryInt Method
See Also

Collapse All Expand All

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.

nValue
  Integer 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.

# Description

Writes an integer to the registry Sets a PC-DMIS registry entry to a specified integer value. Write Integer.

# Syntax

Visual Basic

    Public Function WriteRegistryInt( _
       ByVal lpszSection As String, _
       ByVal lpszEntry As String, _
       ByVal nValue As Long, _
       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.
nValue
  Integer 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 the number of rows for auto feature cylinders to the integer value of 3.

Dim myapp As New PCDLRN.Application

Set myapp = CreateObject("pcdlrn.application")

myval = myapp.WriteRegistryInt("AutoFeatures", "DccCylNumRows", 3, True)

MsgBox myval

# See Also

Application Object

© Wilcox Associates, Inc. All Rights Reserved.

© 2010 All Rights Reserved.