Computer Science Canada

registry help

Author:  pavol [ Fri Sep 30, 2005 7:47 pm ]
Post subject:  registry help

is there any way to delete a whole section from a registry, i know how to delete the key: DeleteSetting(appname,section,key,[default]). but i have the setting saved and when i change it i will have to create a whole new section, because my program depends on it. so, i want to delete the old section (the whole thing, not just then key). is there any way i can do this?

Author:  Tony [ Fri Sep 30, 2005 10:41 pm ]
Post subject: 

registry is just a common place to keep program configurations/settings/whatever.

since the settings for your program are so specialized - why not just keep it all in a custom XML file?

Author:  Monstrosity_ [ Sat Oct 01, 2005 12:14 am ]
Post subject:  Re: registry help

pavol wrote:
is there any way to delete a whole section from a registry, i know how to delete the key: DeleteSetting(appname,section,key,[default]).

Yes. I prefer not to spoon feed though. Press F1 (or goto the site) and look up the DeleteSetting function. Look at the parameters it takes and read the remarks, should be no problem to find.


: