?
Solved

Appending to lines in Tmemo

Posted on 2003-03-26
3
Medium Priority
?
195 Views
Last Modified: 2010-04-16

Is there a way append to a line in a Memo?
In other words, if I have add the line "This is a test" to a Memo, and then add " This is a test again", I want the line to show "This is a test This is a test again" on one line, not on 2 separate lines.  

         Thanks
0
Comment
Question by:jexd99
[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
3 Comments
 
LVL 12

Accepted Solution

by:
esoftbg earned 500 total points
ID: 8214120
Memo.Text := 'This is a test';
Memo.Text := Memo.Text + ', ' + 'This is a test again';

This code works !!!
0
 
LVL 1

Expert Comment

by:jbshumate
ID: 8214250
esoftbg's solution works if you only want add to the end of the memo.  If you want to add onto multiple lines I think you need to index the lines property.

Memo.Lines[1] := Memo.Lines[1] + 'This is a test again';
0
 

Author Comment

by:jexd99
ID: 8214371
Thanks, both of you answered my question. I don't know why I didn't try that, for some reason I didn't think that would work. :)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
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

752 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