[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 571
  • Last Modified:

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

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
Wayne Barron
Asked:
Wayne Barron
1 Solution
 
vadim_tiCommented:
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
 
Wayne BarronAuthor Commented:
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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Tackle projects and never again get stuck behind a technical roadblock.
Join Now