?
Solved

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

Posted on 2004-09-22
2
Medium Priority
?
569 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
vadim_ti earned 400 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 31

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses
Course of the Month11 days, 13 hours left to enroll

752 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