Solved

delete certain characters in a Tmemo.

Posted on 2008-10-09
2
367 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

705 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