Solved

get registry

Posted on 2000-03-30
5
154 Views
Last Modified: 2010-05-02
how can i write a code to get a path from registry.
Anybody help me?
0
Comment
Question by:thg
5 Comments
 
LVL 1

Expert Comment

by:riduce
ID: 2669525
0
 

Expert Comment

by:TheMask
ID: 2669851
What do u mean by getting a path from the registry ?
0
 
LVL 7

Expert Comment

by:Vbmaster
ID: 2670155
0
 
LVL 9

Accepted Solution

by:
cymbolic earned 50 total points
ID: 2670425
here's a sample of how I saved a connection string in the registry, and then retrieved it later.  You canjust as easily save/retrieve a path/file name this way as well:
SaveSetting "PWExtract", "Database", "Con", rdoCon(Which).Connect

Con1$ = GetSetting("PWExtract", "Database", "Con")

0
 

Author Comment

by:thg
ID: 2688517
can u give me some code to get the string by using API?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now