Value from a memo to other memo

edited 4:23AM in FastReport 3.0
Hello...

First, I want say that my english is bad, I'm from Brasil, sorry if
somebody don't understand...

Well...

I need that a value from a Memo go to other memo...
Example:
I have Memo1 that your value is Gardel... I want that this value go to
Memo2...
I try write [Memo1.value := Memo2.value] and other variants but is wrong FR dont
accept...

Then how I do for that a value from this memo go to other memo?

Please I need help...

Comments

  • edited 4:23AM
    try

    Memo2.Text := Memo1.Text;
  • edited 4:23AM
    [Memo1.Text := Memo2.Text]

    The FR generate a error... says that syntax are wrong.

    The memos that i'm speaking is memos from FR...
    Example:
    I have a memo your name is Memo1 and your value is [CUSTOMER."NAME"] I need that this value go to other memo that your name is Memo2...

    I know that if i write [CUSTOMER."NAME"] in memo2, I will have the same value, but I dont want... i need refer the memo1 in value from the memo2

    If I'm in delphi I write Memo1.Text := Memo2.Text, but I'm inside FR...

    The memos are from FR no Delphi.

    Thanks a lot

    Sorry by my bad english...
  • edited 4:23AM
    I suppose that both of the memos are on the same band.

    I meant to write

    Memo2.Text := Memo1.Text;

    this code OnBeforePrint event of the band where the memos are on.

  • gordkgordk St.Catherines On. Canada.
    edited 4:23AM
    you must pay attention to where and how you do it.
    since the value property is the result of the expression, variable or datafield.
    ie
    after memo9 has retreived it's data put the value into memo10s text.
    procedure Memo9OnAfterData(Sender: TfrxComponent);
    begin
    memo10.memo.text := VarToStr(memo9.value);
    end;

    Note text object's memos are multi lined so the value returned will be that of the last expression calculated.
    ie if memo9 contained
    [CUSTOMER."NAME"]
    [CUSTOMER."addr1"]

    the result value returned from the value property of memo9 would be the value of
    [CUSTOMER."addr1"]

Leave a Comment