Results 1 to 6 of 6

Thread: reading registry keys

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Posts
    2

    reading registry keys

    Is there a simple way I can retreive names of VB subkeys in a given key?

    I looked through tons of sample code but it appears it should not be this complicated.

    Does any one know?

    thanks!

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    "VB Subkeys"?
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3
    denniswrenn
    Guest
    VB has some functions, I don't remember what they're called, like GetRegistry or SetRegistry or something, they're friendlier versions of the API, but they put the keys and stuff in the VB key... I think..... it's been like 1/2 a year since I've used them...

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Oh. GetSetting and SaveSetting? Yep - they're limited to saving string values, under the key "HKEY_CURRENT_USER\Software\VB and VBA Program Settings" (I think).

    You'd need to use RegEnumKeys, which there should be a sample of at www.vbapi.com
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5
    Registered User Nucleus's Avatar
    Join Date
    Apr 2001
    Location
    So that's what you are up to ;)
    Posts
    2,530

  6. #6

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Posts
    2

    It worked

    Thanks all for your help,

    It worked.

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