Solved

Easy points: delete string in reg

Posted on 1998-02-18
3
229 Views
Last Modified: 2010-04-04
How do I delete a string in the registry, from Delphi 2 Desktop? I know how to delete a key, but thats not quite enough
0
Comment
Question by:koger
3 Comments
 
LVL 2

Expert Comment

by:Waldek
ID: 1359608
Use TRegistry.DeleteKey
0
 
LVL 5

Accepted Solution

by:
ronit051397 earned 50 total points
ID: 1359609
Use DeleteValue. From Delphi Help:
Erases a data value that is associated with the current key.

function DeleteValue(const Name: string): Boolean;

Description

Call DeleteValue to remove a specific data value associated with the current key. Name is string containing the name of the value to delete. Keys can contain multiple data values, and every value associated with a key has a unique name.
DeleteValue returns True if the deletion is successful, False if the deletion fails.
0
 

Author Comment

by:koger
ID: 1359610
Thanx, the problem was that the helpfile to Delphi 2, desktop, does not say a word about registry.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question