Re: [Delphi 6] How can i copy a DbMemo to a Memo?




"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;

.



Relevant Pages

  • Re: [Delphi 6] How can i copy a DbMemo to a Memo?
    ... I have to manipulate a DbMemo in a file and copy it in a Memo. ... Table.FieldByName.Value is a Variant. ...
    (alt.comp.lang.borland-delphi)
  • Re: [Delphi 6] How can i copy a DbMemo to a Memo?
    ... I have to manipulate a DbMemo in a file and copy it in a Memo. ... Table.FieldByName.Value is a Variant. ... but i have an error: Access violation at adress ...
    (alt.comp.lang.borland-delphi)
  • [Delphi 6] How can i copy a DbMemo to a Memo?
    ... I have to manipulate a DbMemo in a file and copy it in a Memo. ... Table.FieldByName.Value is a Variant. ...
    (alt.comp.lang.borland-delphi)
  • Re: extracting data
    ... Alex Dybenko ... "Jack" wrote in message ... > place the memo box fields at the end. ... >>> Public Function ExtractDetail(textLine As Variant, ...
    (microsoft.public.access.modulesdaovba)
  • Re: extracting data
    ... place the memo box fields at the end. ... >>I am using the following routine to extract data from emailform. ... >> Public Function ExtractDetail(textLine As Variant, ...
    (microsoft.public.access.modulesdaovba)