Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Writing to windows register
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00705600
Message ID:
00706130
Views:
17
>The code works great! But how can I update or delete the key! I have tried wrting the key again with a different value, but I don't think that is the correct way
Function DeleteRegistry
   Lparameters tcRegistryKey
   * tcRegistryKey = registry key to delete
   * ex: "HKCC\System\CurrentControlSet\Control\Print\Printers\Default"
   oShell = Createobject("WScript.Shell")
   lcValue = oShell.RegDelete(tcRegistryKey)
Note: you must delete keys one at a time. In the example above delete in this order:
HKCC\System\CurrentControlSet\Control\Print\Printers\
HKCC\System\CurrentControlSet\Control\Print\
HKCC\System\CurrentControlSet\Control\

Note: the backslash at the end indicates a key (rather than a value)

use the .Regwrite() function to update.
Dr. Ken A. McGinnis
Healthcare software design
Previous
Reply
Map
View

Click here to load this message in the networking platform