Solved

chr(13) and Memo

Posted on 1997-06-23
1
256 Views
Last Modified: 2010-04-04
This must be a very stupid and easy question but I cant seem to figure it out. If I have a memo box and do something like this: (say memo1.seltext="bob")

memo1.seltext := memo1.seltext + chr(13) + "hello";

it displays the following in the memo box:

bob|hello

what I want it to do is dislplay:

bob
hello

how do I get the memo box to make chr(13) a new line instead of a |. If i save the contents of memo1 and then reload it into the memo box it works fine.
I have also tried using chr(10) (I think that is what it was) and it does exactly the same thing.
0
Comment
Question by:Draco
1 Comment
 

Accepted Solution

by:
vyga earned 20 total points
ID: 1337682
Try this way:memo1.Lines.Add('bob');memo1.Lines.Add('hello')Vygintas
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

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 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…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

770 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