Solved

TMemo component

Posted on 1998-05-03
7
267 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
  • 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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now