Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

TMemo component

Posted on 1998-05-03
7
Medium Priority
?
278 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
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!

 
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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

610 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