Solved

TMemo component

Posted on 1998-05-03
7
276 Views
Last Modified: 2010-04-06
How can I pass two lines (with characters) in one (line) in a TMemo component?

0
Comment
Question by:dia050398
[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
  • 2
  • 2
  • +1
7 Comments
 
LVL 2

Expert Comment

by:kjteng
ID: 1340783
I don't understand your question. Please elaborate
0
 

Expert Comment

by:skanade
ID: 1340784
When setting the Text for the component, use the following syntax for the string to assign:

'This is first line'#13#10'This is second line'

The #13#10 adds a CR/LF (new line) to first line.

Hope this helps,
Sanjay
0
 

Author Comment

by:dia050398
ID: 1340785
I have a TMemo component with two lines wit strings; for example:

line 1. Hello
line 2. World

I want link this two lines in a Third. e.g.:

line 3. Hello World

thanks



0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Expert Comment

by:pjdb
ID: 1340786
Simply use :

Memo1.Lines[3]:=Memo1.Lines[1] + Memo1.Lines[2];

JDB
0
 

Expert Comment

by:skanade
ID: 1340787
If that is your question, JDB is right. Please award him the points.
0
 

Author Comment

by:dia050398
ID: 1340788
HOw can i give the points to JDB???
0
 
LVL 1

Accepted Solution

by:
pjdb earned 30 total points
ID: 1340789
That's it!

JDB
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

717 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