Reputation: 39
I am very new to VBA programming , I have a VBA code that reads data from the INI file, the function is like this now my Boss asked me to go with registry ! Can somebody guide me what he meant ? I mean I give the input file,output file in INI file kept in some folder, but what's this registry ? How'd read put input,output file from registry?
Upvotes: 1
Views: 244
Reputation: 12768
Steve McMahon wrote a great registry class for vb6. You can find it here. http://www.vbaccelerator.com/codelib/inireg/registry.htm
If you intend on using it with MS Access, you'll need to replace all occurrences of App.EXEName with CurrentProject.Name.
You'll want your app to have it's own node under HKEY_CURRENT_USER\Software. Good luck, and be careful not to mess with any other registry keys.
Upvotes: 2
Reputation: 4170
I believe he's asking to migrate the INI to a collection of registry strings which can populate your program configuration directly from the registry rather than the INI file. To do this, read this article on creating New Registry Keys -> Here
But before you dive into messing with the registry, verify that is what your boss wants. Because messing with the registry can be a destructive end.
Upvotes: 3