Solved

delete certain characters in a Tmemo.

Posted on 2008-10-09
2
361 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
Comment Utility
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
Comment Utility
great
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

728 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now