Solved

delete certain characters in a Tmemo.

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

831 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