Board index » delphi » How do I put TMemoField in TStrings and v.v. ?

How do I put TMemoField in TStrings and v.v. ?

Hi,

I just can't get this to work:

The Paradox database has a memo field
I want to manipulate the text data in that field off-screen (e.g. in a
TStringList), then put it back in the database.

Should be simple, but after 1 hour I give up ;-(

Example code, anyone?
Thanks in advance,
Jan

-----------------------------------------------------------------------
Jan Doggen                Masters Software           mass...@xs4all.nl
P.O. Box 697              2300 RA  Leiden            The Netherlands
-----------------------------------------------------------------------
** Specialists in multimedia software for education and presentation **
-----------------------------------------------------------------------
Usage of this email address for commercial purposes costs US$ 50 per
message. By using this email address you agree to this condition.
-----------------------------------------------------------------------

 

Re:How do I put TMemoField in TStrings and v.v. ?


Jan,

It's pretty simple:
..
tblTestMEMOFIELD: TMemoField;
..
strlTest: TStringList;
..
tblTestMEMOFIELD.Assign(strlTest);  <--- Just use assign on a TMemoField
component.

Henk Burgstra

In article <6vfh4t$av...@news2.xs4all.nl>, mass...@xs4all.nl (Jan Doggen)
wrote:

Quote
>Hi,

>I just can't get this to work:

>The Paradox database has a memo field
>I want to manipulate the text data in that field off-screen (e.g. in a
>TStringList), then put it back in the database.

>Should be simple, but after 1 hour I give up ;-(

>Example code, anyone?
>Thanks in advance,
>Jan

>-----------------------------------------------------------------------
>Jan Doggen                Masters Software           mass...@xs4all.nl
>P.O. Box 697              2300 RA  Leiden            The Netherlands
>-----------------------------------------------------------------------
>** Specialists in multimedia software for education and presentation **
>-----------------------------------------------------------------------
>Usage of this email address for commercial purposes costs US$ 50 per
>message. By using this email address you agree to this condition.
>-----------------------------------------------------------------------

Other Threads