>In the What's New guide of version 4.2, it shows the code that was added to delete a registry entry. I believe the proper syntax when called from the application object is:
>
>this.oSystemSetting.delete('registry string')
>
>where 'registry string' is the key you want to delete. If you do not pass a second parameter, what is the default value of the main key?
>
>When I run through the code, it returns a false and the key is not deleted. Can someone give me an example of deleting a key in the project manager sample so I can verify the registry hierarchy in my own application?
The following code deletes the registry key "Window Positions":
goapp.oSystemSetting.Delete(goApp.GetRegistryKey()+"Window Positions")
The call to goApp.GetRegistryKey() returns: "Software\Oak Leaf Enterprises Solution Design, Inc.\Project Manager\1.0\"
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com