Solved

Question Title: Clear Text From Memo ( Text in .dll file )

Posted on 2004-09-22
2
560 Views
Last Modified: 2010-04-05
I understand how it is hard to really grasp what someone is talking about,
So I have put together a Demo, to show what is going on.
Please read the "TLabel" on the "TPanel" located at the bottom
Of the Projects Form.
================
this Demo extracts links from a web page.
And then there is 2-Buttons that allow you to
Strip out unwanted text/links.

1st Button : Hard Coded links are added
To the Buttons.OnClick; and when pressed it clears out the
links that are listed. ( It does not always clear out the full
Link address, but I am using something else that does this as well, so this is not an issue in this demo )
( 1st Button Hard Coded, : Works liks a charm )

2nd Button: Reads from a TMemo that is getting it's information from a [ .dll ] file, that is storing all the URL's that you want to delete.
( 2nd Button will only work on " Limited " amount of links located in the " Extracted Links Memo "
Once you go over several links, it is rendered usless.
This is where this guestion comes in at, Can someone help
To resolve this issue with the .dll file and large clearing of lines ? )
 
================
Demo uses:
   TEmbeddedWB...
Is you do not have this component, please remove the following from
The Uses.
SHDocVw_TLB, EmbeddedWB,

And then replace with the TWebBrowser Control.
Default..... WebBrowser1         ....  has been used in this project.
To make it simplier for those to convert over to it's component name.

Thank You
For any help that you may be able to assist me with,

Please click on link to start download...
http://www.carrz-fox-fire.com/Delphi/Examples.zip

Wayne
0
Comment
Question by:Wayne Barron
2 Comments
 
LVL 6

Accepted Solution

by:
vadim_ti earned 100 total points
ID: 12122763
may be you need

for i:=0 to kill_list.Lines.Count-1 do
Memo1.Text := StringReplace(Memo1.Text, ''+kill_list.Lines[i]+'', '',
[rfReplaceAll, rfIgnoreCase]);


in your Button2Click procedure
0
 
LVL 30

Author Comment

by:Wayne Barron
ID: 12122838
Thank You: [vadim_ti];

Dag on, how simple was that :-)

Thank you very much. I have just been doing so much
Her at the office that I just could not think straight on this code.

Thank you so very much.

carrzkiss
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

747 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now