Using FR3 variables in script

edited September 2004 in FastReport 3.0
Hi,

I've defined some variables in "variables tag" of FastReport but I can't access them from script, I can't access the system variables too like page, date etc. In Fr2.53 I can do it using [myVariable]

eg

if [page#] = 1 then ......

in FR3 when I drag and drop the variable from the variables tag to the script editor then appears something like this

<page>

but when I try to compile the script I get an error message

best regards

Gilvan Ferreira

Comments

  • edited 4:36PM
    the following script works well:

    if <Page#> = 1 then ...
  • edited 4:36PM
    If I need to get the value of a variable it works fine but if I need to assign a value
    to a variable I receive an error message

    <vartest> := 'hello word';

    when I try to compile this I get this message "; expected"

    best regards

    Gilvan Ferreira
  • edited September 2004
    Use the "Set" procedure (this is described in the user manual, "Script" section).
  • edited 4:36PM
    It works fine

    Thanks

    Gilvan

Leave a Comment