Solved

Adding text to a DBMemo field.

Posted on 1998-03-13
2
1,846 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
Comment Utility
Try to use dbMemo.Lines.Add('String Goes here');
To reset the memo, use dbMemo.Lines.Clear;

0
 
LVL 6

Author Comment

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

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now