Hi
I'm working on a cover design and need to know how i can declare my own variables (especially strings) in a script and display them in a visual object just like the predefined Variables ([TranslatedTitle], [Rating], …).
Thanx for any help
FreeReport Designer Script
I do not really know how it works actually
I only made few tests:
In the editor of a text area of the designer, if you check the "script" box, you can e.g. enter this in the bottom part (script) of the window :
and just put [tmp1] in the contents of the text area (top part of the window).
I only made few tests:
In the editor of a text area of the designer, if you check the "script" box, you can e.g. enter this in the bottom part (script) of the window :
Code: Select all
begin
if ([OriginalTitle] = [TranslatedTitle]) and ([TranslatedTitle] <> '') then
tmp1 := [TranslatedTitle]
else
tmp1 := [OriginalTitle] + ' - ' + [TranslatedTitle]
end;