Solved

delete certain characters in a Tmemo.

Posted on 2008-10-09
2
366 Views
Last Modified: 2012-05-05
Hello experts,
       
In my TMemor have the following strings:

"21874321hasdkhsda1B490384092834a09duiaj1asaidpoiasdx190823=saiodu112098e12hejhasdhasd9801273isajdlasjdoaisdoiasduoiasu12; ioasud12 = dsadi890217e12ijdas."

 I want you to delete 76 characters after the FIRST B.

Thanks in advance.
0
Comment
Question by:davizinx
[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 14

Accepted Solution

by:
SteveBay earned 350 total points
ID: 22682274
Something Like this:
p := Pos('B',Memo1.lines.Text);
Memo1.lines.text := copy(Memo1.lines.Text, p +1, p + 76);
0
 

Author Closing Comment

by:davizinx
ID: 31504821
great
0

Featured Post

Independent Software Vendors: 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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

733 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