?
Solved

TMemo component

Posted on 1998-05-03
7
Medium Priority
?
277 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 120 total points
ID: 1340789
That's it!

JDB
0

Featured Post

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!

Question has a verified solution.

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

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…
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’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…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

764 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