Page 1 of 1

FAST REPORT PROBLEMS-HELP NEEDED

Posted: 2018-05-20 13:50:22
by Don_Rod
Fastreport gives an error when writing more tha one variable in the scritp.

Example (I have a lot more, but this is the simplest one):

Memo
[Year]
[tmp1]
[tmp2]

Script
tmp1 := [Director];
tmp2 := [Country];


ERROR MESSAGE: Undefined symbol "TMP2"

Any idea?
Thanks for your help

Don

Re: FAST REPORT PROBLEMS-HELP NEEDED

Posted: 2018-05-20 19:03:21
by antp
Have you checked in other templates if there was something similar?
Right now I don't really remember how that worked (and it has some bugs, as it is an old version of that reporting system), so I can't really help :/

Re: FAST REPORT PROBLEMS-HELP NEEDED

Posted: 2018-09-19 11:04:18
by Don_Rod
Thanks for your answer.

I have seen that the error disappears writing each segment code as below:

begin
code1
begin
code2
end;
end;

There is no reason for that but ....