Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Read & write a value to registry
Message
From
28/11/2001 07:26:30
 
 
To
28/11/2001 06:28:10
Ls Wong
Vista Solution Sdn. Bhd.
Ampang, Malaysia
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00586844
Message ID:
00586866
Views:
49
Hi,

There are several options. As mentioned by Alexandre, you can use the registry class from the FFC. You could use API calls which is a bit more tricky or the WSH which is the easiest option in my opinion:
loWSH = CREATEOBJECT("wscript.shell")
?loWSH.RegRead("HKEY_CURRENT_USER\Software\Microsoft\VisualFoxPro\7.0\Options\EXACT")
?loWSH.RegWrite("HKEY_CURRENT_USER\Software\Microsoft\VisualFoxPro\7.0\Options\EXACT", "ON")
?loWSH.RegWrite("HKEY_CURRENT_USER\Software\Microsoft\VisualFoxPro\7.0\Options\EXACT", "OFF")
Some useful Windows API links:

http://fox.wikis.com/wc.dll?Wiki~Win32API~WIN_COM_DNA
http://www.news2news.com/vfp/index.php
http://www.levelextreme.com/Live/API.asp

>how to read & write a value to registry?
>BTW any idea how to master windows API function?
>thanks.
Daniel
Previous
Reply
Map
View

Click here to load this message in the networking platform