Solved

chr(13) and Memo

Posted on 1997-06-23
1
250 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

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

19 Experts available now in Live!

Get 1:1 Help Now