?
Solved

Adding text to a DBMemo field.

Posted on 1998-03-13
2
Medium Priority
?
2,024 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
[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 Comments
 
LVL 3

Accepted Solution

by:
KE earned 200 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month14 days, 16 hours left to enroll

771 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