Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best way 2 use Registry in VFP6?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00245114
Message ID:
00245141
Views:
15
>In previous versions of FP, I had to make calls to Win32 (as I recall) to use registry entries (both write and read). Now I see that VFP6 has REGISTRY.VCX objects that have some promising properties (but little documentation), and I saw a recent article in VFP Advisor which used WScript for doing such things. I thought I saw another article that seemed much more direct, but I cannot seem to find it (perhaps my memory... what was I saying?)
>
>Now I want to use the registry in my current application, and I'm not sure which way is the best way to go. If the answer is to use REGISTRY.VCX, perhaps someone could show me the syntax to create, read and write a reg entry in the HKCU section of the registry - 'cause the MSKB Q191638 is too wierd as an example.
>

The FFC registry class ses the same API calls; we've had threads over the past few weeks discussing various approaches. If you have code from VFP 5 that you're satisifed with, there's no reason to switch to the FFC Registry class. I didn't because my own code does a whole lot more, and I understand it well.

If you have the WSH installed on the system, the Wscript.Shell automation object has methods to read, write and delete string values; the FFC Registry class has more functionality, but requires that you read the code to figure out how to use it (the main thing is working out what to pass as parameters.)

>TIA
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform