Re: [Delphi 6] How can i copy a DbMemo to a Memo?
- From: "BRoberts" <berdontemail@xxxxxxxxxx>
- Date: Tue, 17 Jun 2008 19:00:40 -0400
"Broc_Ex_Co" <brocexco@xxxxxxxxxx> wrote in message news:48578894$0$895$ba4acef3@xxxxxxxxxxxxxxxxx
(Sorry for my poor english.)
I have to manipulate a DbMemo in a file and copy it in a Memo.
Table.FieldByName('Memo1').Value is a Variant.
How is it possible to copy it in a Memo?
Many different ways. Two easy ones:
if Not VarIsNull (aTable ['Memo1']) // it will be Null if it's blank or empty, i.e. ''
then aMemo.Lines.Text := aTable ['Memo1']
else aMemo.Clear;
or
aMemo.Lines.Text := aTable.FieldByName ('Mem1').AsString;
.
- Follow-Ups:
- Re: [Delphi 6] How can i copy a DbMemo to a Memo?
- From: Broc_Ex_Co
- Re: [Delphi 6] How can i copy a DbMemo to a Memo?
- References:
- [Delphi 6] How can i copy a DbMemo to a Memo?
- From: Broc_Ex_Co
- [Delphi 6] How can i copy a DbMemo to a Memo?
- Prev by Date: Re: Listening to a rs232 com port ?
- Next by Date: Re: Little interesting idea to quickly add local variable, maybe even fields.
- Previous by thread: Re: [Delphi 6] How can i copy a DbMemo to a Memo?
- Next by thread: Re: [Delphi 6] How can i copy a DbMemo to a Memo?
- Index(es):
Relevant Pages
|