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 11:14AM
    the following script works well:

    if <Page#> = 1 then ...
  • edited 11:14AM
    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 11:14AM
    It works fine

    Thanks

    Gilvan

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.