?
Solved

delete certain characters in a Tmemo.

Posted on 2008-10-09
2
Medium Priority
?
368 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 1400 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month10 days, 4 hours left to enroll

762 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