Help with use of variable in code

rodrigo7rodrigo7 Brasil
edited 2:30AM in FastReport 4.0
This is my code:

procedure SaldoAnteriorOUT_SALDOOnBeforePrint(Sender: TfrxComponent);
begin
<SaldoAtual> := 0;
end;

procedure lbl_ValorLancamentoOnAfterData(Sender: TfrxComponent);
begin
<SaldoAtual> := <SaldoAtual> + Value;
end;

SaldoAtual is a variable

I get "';' expected error, what is wrong?

Comments

  • rodrigo7rodrigo7 Brasil
    edited 2:30AM
    I found the solution, is something like this ...

    procedure SaldoAnteriorOUT_SALDOOnAfterData(Sender: TfrxComponent);
    begin
    Set('SaldoAtual', 0);
    end;

    procedure lbl_ValorLancamentoOnAfterData(Sender: TfrxComponent);
    begin
    Set('SaldoAtual', Get('SaldoAtual') + Value);
    end;

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.