Board index » delphi » TStringlist to TMemofield

TStringlist to TMemofield

I have
  text :TStringlist   and
  memoF:TMemoField

I have tried to assign text to TMemofield with following ways:

taOts['memoF'].Asstring:=Text;
taOts['memoF'].Assign(Text);
taOts['memoF'].value:=Text;

no success - how I should do it ?

 

Re:TStringlist to TMemofield


memoF.Value := Text.Text;

(BTW IMO Text is not a good identifier since a large number of components
have a text property.)

Quote
juhani pylkkanen wrote in message <7gcfjs$...@idefix.eunet.fi>...
>I have
>  text :TStringlist   and
>  memoF:TMemoField

>I have tried to assign text to TMemofield with following ways:

>taOts['memoF'].Asstring:=Text;
>taOts['memoF'].Assign(Text);
>taOts['memoF'].value:=Text;

>no success - how I should do it ?

Re:TStringlist to TMemofield


Hi Juhani!

(InterBase)
  Query1.FieldByName('memoF').asString:= Memo1.Text;

in your case, I presume:
  taOts['memoF'].asString:= text.Text;

BTW, text is a bad name for a TStringList, isn't it?

Cheers,
Rudy
=================================================

Quote
juhani pylkkanen wrote:

> I have
>   text :TStringlist   and
>   memoF:TMemoField

> I have tried to assign text to TMemofield with following ways:

> taOts['memoF'].Asstring:=Text;
> taOts['memoF'].Assign(Text);
> taOts['memoF'].value:=Text;

> no success - how I should do it ?

Other Threads