Re: Multiple Memo fields to TRichEdit



Yes, you were right. I was out of space.
I couldn't create a calculated Memo field type, Delphi doesn't accept, so I
made it WideString type, but I forgot to check the size, and after your
reply, I saw that it was only 50, so that's way I could see only a few
lines.

Thanks again,
Habib

"Andrew" <abaylis_nos@xxxxxxxxxxx> wrote in message
news:45a96db8$1@xxxxxxxxxxxxxxxxxxxxxxxxx
"Habib" <habibz@xxxxxxxxxxxxx> wrote in message
news:45a95885@xxxxxxxxxxxxxxxxxxxxxxxxx
Thanks both of you for suggestions.

I decided to create a calculated field that combines the memo fields
together, but I didn't succeed to make it work.
I tried to create Report field, which is calculated, type WideString, and
linked to dbrichedit and I made something like that:

AdoDataset2Report.AsWideString := ADODataset1Summary.AsWideString +
AdoDataset3Comment.AsWideString;

this will display in DBrichedit only a few lines from Summary field.
I tried also with ADODataset1Summary.AsVariant +
AdoDataset3Comment.AsVariant, with same result.

What is the solution to combine the memo fields? I didn't find anything on
Internet to help me...
(Please, bear a beginner questions!)

Thank you very much!

As Bill said, that should work. However, I'd also ask you to check that the
ADODatasetReport2 field is a TMemoField and not a TStringField (you may be
running out of space).

Andrew


.



Relevant Pages

  • Re: Multiple Memo fields to TRichEdit
    ... I decided to create a calculated field that combines the memo fields ... I tried to create Report field, which is calculated, type WideString, and ... this will display in DBrichedit only a few lines from Summary field. ...
    (borland.public.delphi.database.ado)
  • Re: Multiple Memo fields to TRichEdit
    ... I decided to create a calculated field that combines the memo fields ... this will display in DBrichedit only a few lines from Summary field. ... I need to display multiple fragments of text stored in an Access Database ...
    (borland.public.delphi.database.ado)