Solved

Adding text to a DBMemo field.

Posted on 1998-03-13
2
1,988 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 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

695 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