Solved

Question about GetSetting?

Posted on 2002-07-18
5
191 Views
Last Modified: 2011-09-20
Can someone explain to me what this does? I know it has something to do with the registry.

m_strSaveDir = GetSetting(App.EXEName, "SaveSection", "SaveKey")

Is it assigning a value to the Windows registry?  I know it is being used somehow maybe with a common dialog box.  How do I delete whats in it.
0
Comment
Question by:InvisibleMan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 4

Expert Comment

by:gencross
ID: 7163159
This sets a value to a registry key.

Run regedit.  Once you have the program running choose Edit/Find and search for the key that is in the GetSetting call.  When you find it you can delete it.

NOTE: Deleting a registry key could cause problems with the app that put it there.

0
 
LVL 20

Accepted Solution

by:
hes earned 25 total points
ID: 7163179
>>m_strSaveDir = GetSetting(App.EXEName, "SaveSection", "SaveKey")
This is retrieving a registry value from (in win 98)
HKEY_CURRENT_USER\Software\VB and VBA Program Settings\APP.ExeName\SaveSection

It was stored by a
SaveSetting(App.EXEName, "SaveSection", Value)

You can delete it but most programmers who use the GetSetting also look for not there and reset it to a default
 
0
 
LVL 4

Expert Comment

by:gencross
ID: 7163246
Sorry...Didn't look closely enough.  This does get the setting not save it.
0
 

Author Comment

by:InvisibleMan
ID: 7163776
Thanks guys do you think because a dialog box is being used and some drive mappings that it is being used to set the path.  I know that it is actually saving a path to a text file.  For example, C:\Testing.txt.  So now everytime the code runs its pulling into m_strSaveDir that path.  Should I delete it or just default it to nothing?
0
 
LVL 4

Expert Comment

by:gencross
ID: 7164486
If you are not going to use the registry setting any further then delete it and get rid of the code that Gets/Sets it.  No need to do more than you have to.
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

696 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