Results 1 to 2 of 2

Thread: If RegDoes_Val_Exist

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2004
    Posts
    3

    If RegDoes_Val_Exist

    hey Guys Im having a problem working with a regvalue. So far i have this code..

    Visual basic 6 code


    Code:
    Public Function regDoes_Key_Exist(ByVal lngRootKey As Long, ByVal strRegKeyPath As String) As Boolean
    
    Dim lngKeyHandle As Long
    lngKeyHandle = 0
    m_lngRetVal = RegOpenKey(lngRootKey, strRegKeyPath, lngKeyHandle)
      
    If lngKeyHandle = 0 Then
    regDoes_Key_Exist = False
    Else
    regDoes_Key_Exist = True
    End If
    m_lngRetVal = RegCloseKey(lngKeyHandle)
    End Function


    Then I want to call it from my form as
    RegDoes_Val_Exist( etc...

    Can someone help me get this together.

    I dont want to use enumeratevalues or queryvalues

  2. #2

    Thread Starter
    New Member
    Join Date
    Jan 2004
    Posts
    3
    *bump* please anyone

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width