Solved

TMemo component

Posted on 1998-05-03
7
275 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

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…
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…

732 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