Re: Multiple Memo fields to TRichEdit
- From: "Habib" <habibz@xxxxxxxxxxxxx>
- Date: Sun, 14 Jan 2007 00:09:21 +0200
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!
"Andrew" <abaylis_nos@xxxxxxxxxxx> wrote in message
news:45a82255$1@xxxxxxxxxxxxxxxxxxxxxxxxx
"Habib" <habibz@xxxxxxxxxxxxx> wrote in message
news:45a80181@xxxxxxxxxxxxxxxxxxxxxxxxx
Hi,As the TDBRichEdit can only display from one field, you'll need to create a
I need to display multiple fragments of text stored in an Access Database
formatted memo fields in a single TRichEdit.
For example, I have ADODataset1 with Summary (Memo field), and ADODataset2
with Comment (Memo field) and I want to display in a RichEdit:
Summary
Comment
How can be done this?
Thanks in advance,
calculated field that combines the two bits of text together and then get
the DBRichEdit to display it. As you are using ADO, a quick way would be to
modify the SQL statement, or you can create a persistent field in one of the
datasets and write an OnCalcFields handler.
HTH
Andrew
.
- Follow-Ups:
- Re: Multiple Memo fields to TRichEdit
- From: Andrew
- Re: Multiple Memo fields to TRichEdit
- From: Bill Todd
- Re: Multiple Memo fields to TRichEdit
- References:
- Multiple Memo fields to TRichEdit
- From: Habib
- Re: Multiple Memo fields to TRichEdit
- From: Andrew
- Multiple Memo fields to TRichEdit
- Prev by Date: Re: Connecting to Oracle DB via ip or hostname
- Next by Date: Re: Multiple Memo fields to TRichEdit
- Previous by thread: Re: Multiple Memo fields to TRichEdit
- Next by thread: Re: Multiple Memo fields to TRichEdit
- Index(es):
Relevant Pages
|