Results 1 to 2 of 2

Thread: GetSetting Problem Help Please!

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2002
    Location
    Johannesburg, South Africa
    Posts
    12

    GetSetting Problem Help Please!

    The following code returns spaces for both rServer and rDb
    regApp = "app1"
    regString = "setting1"

    The server registory has values set for ServerName and DataBaseName in registry

    HKEY_CURRENT_USER\Software\VB and VBA Program Settings\ServerName="MainServer"

    DataBaseName in the
    HKEY_CURRENT_USER\Software\VB and VBA Program Settings\ServerName="MainDB"

    rServer = (GetSetting(regApp, regString, "ServerName", ""))
    rDb = (GetSetting(regApp, regString, "DataBaseName", ""))


    Can anybody show me what I need to do to get this to work, if at all it can be done?
    Hans

  2. #2

    Thread Starter
    New Member
    Join Date
    Aug 2002
    Location
    Johannesburg, South Africa
    Posts
    12

    GetSettings

    Sorry the above post was incorrectly typed.


    The registry settings should have read

    HKEY_CURRENT_USER\Software\VB and VBA Program Settings\app1\setting1\ServerName="MainServer"

    HKEY_CURRENT_USER\Software\VB and VBA Program Settings\app1\setting1\DataBaseName="MainDB"

    rServer = (GetSetting(regApp, regString, "ServerName", ""))
    rDb = (GetSetting(regApp, regString, "DataBaseName", ""))

    rServer and rDb still return "" ?
    Hans

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