Solved

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

Posted on 2004-09-22
2
566 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 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Intraweb submit form as a POST request 4 359
Process Javascript errors with Delphi TWebBrowser 1 210
CheckListBox usage 3 83
Firemonkey Queue list 1 32
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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

730 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