Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Clearing Delphi Memo Text

1,860 views
Skip to first unread message

Stephen Anthony Peart

unread,
Apr 15, 1995, 3:00:00 AM4/15/95
to
How do I clear the memo text in the corner of a delphi memo component,
I cannot seem to find a caption property ?

Also How do you declare a memo field in the Interbase database
supplied with Delphi ? I have tried using Varchar, but once it is in
edit mode the field is displayed as a blob memo and no text can be
entered.


--
Stephen Anthony Peart


Alan Page

unread,
Apr 16, 1995, 3:00:00 AM4/16/95
to
In <494611...@sa-peart.demon.co.uk> Ste...@sa-peart.demon.co.uk

(Stephen Anthony Peart) writes:
>
>How do I clear the memo text in the corner of a delphi memo component,

>I cannot seem to find a caption property ?
>

Check out the Lines property in the Object Inspector. This will answer
your question and show you some more features.

--
************************************************************
* pa...@ix.netcom.com software eng/dev/test/hack *
* NetCrusher...Someone had to make the AOL'rs look good! *
************************************************************

Steve Koterski

unread,
Apr 18, 1995, 3:00:00 AM4/18/95
to
Stephen Anthony Peart (Ste...@sa-peart.demon.co.uk) wrote:
: How do I clear the memo text in the corner of a delphi memo component,
: I cannot seem to find a caption property ?

If you are using a TMemo component, the command would be:

MemoName.Lines.Clear;

If you are using a TDBMemo component, use:

TableName.FieldByName('FldName').Clear;

This will clear the underlying field value.

: Also How do you declare a memo field in the Interbase database

: supplied with Delphi ? I have tried using Varchar, but once it is in
: edit mode the field is displayed as a blob memo and no text can be
: entered.

A VarChar field should do quit fine for this purpose. Just where is it
that the VarChar field is displayed only as "memo"? In a TDBGrid? If that
is the case, then this is expected behavior. Memo data cannot be displayed
in a TDBGrid (or in the Database Desktop). You would need to use a TDBMemo
component to display the memo data (best way) or migrate the data to a
TMemo component.

--
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/ Steve Koterski _/ The opinions expressed here are _/
_/ kote...@borland.com _/ exclusively my own _/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

0 new messages