Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Read & write a value to registry
Message
De
28/11/2001 07:26:30
 
 
À
28/11/2001 06:28:10
Ls Wong
Vista Solution Sdn. Bhd.
Ampang, Malaisie
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00586844
Message ID:
00586866
Vues:
50
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform