Solved

Adding text to a DBMemo field.

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

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

Suggested Solutions

Title # Comments Views Activity
LAN or WAN ? 11 95
Performance of SQL statement 37 127
Multi-layered image in FireMonkey 9 48
DBCtrlGrid, Delphi, Scroll 8 38
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…
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

860 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