Solved

Adding text to a DBMemo field.

Posted on 1998-03-13
2
1,866 Views
Last Modified: 2008-02-01
Would someone please give me the necessary code so that I can add text on a new line of a DBMemo field.  The code I'm using now (that doesn't work) is below.  I can add text to the first line, but I can't add new text to new lines.  I'm using D3.

    if dbMemo.Text = ''
    then dbMemo.Text := outLine + ' '+ resultTime  // the field is empty.
    else dbMemo.Text := dbMemo.Text + outLine + ' '+ resultTime;
0
Comment
Question by:tecbuilder
2 Comments
 
LVL 3

Accepted Solution

by:
KE earned 50 total points
ID: 1360488
Try to use dbMemo.Lines.Add('String Goes here');
To reset the memo, use dbMemo.Lines.Clear;

0
 
LVL 6

Author Comment

by:tecbuilder
ID: 1360489
I knew it was something simple, but I couldn't find it anywhere.  Thanks for the help.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

910 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