Re: [Delphi 6] How can i copy a DbMemo to a Memo?
- From: "Broc_Ex_Co" <brocexco@xxxxxxxxxx>
- Date: Thu, 19 Jun 2008 09:00:49 +0200
"BRoberts" <berdontemail@xxxxxxxxxx> a écrit dans le message de news:
db8eb$485841a1$cef89f20$8829@xxxxxxxxxxxxxxxxxxxx
"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;
Thanx a lot!
I tried your way, but i have an error : Access violation at adress ......
......
Do you have another suggestion of amelioration?
.
- Follow-Ups:
- Re: [Delphi 6] How can i copy a DbMemo to a Memo?
- From: BRoberts
- 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
- Re: [Delphi 6] How can i copy a DbMemo to a Memo?
- From: BRoberts
- [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: Delphi v5.0 vs 2007
- 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
|