Page 1 of 1

FreeReport Designer Script

Posted: 2003-03-17 18:56:48
by Guest
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

Posted: 2003-03-17 19:30:44
by antp
I do not really know how it works actually :D
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;
and just put [tmp1] in the contents of the text area (top part of the window).

Posted: 2003-03-18 19:54:42
by Guest
thanx it worked! i thought variables have to be declared at first but it seems that one can just use them without declaration.