Variables as first line in Procedure in Scipt
dschuch
Dresden,Germany
Hi,
thats my procedure:
procedure Band2OnBeforePrint(Sender: TfrxComponent);
begin
<span style='color:red'> <HL>:=NOT <HL>;</span>
end;
HL is a declared variable but i get
';' expected.
[HL]:=NOT [HL]
HL:=NOT HL
won't work too.
If <HL> then
<span style='color:red'>HL:=False</span>
else
HL:=True;
also does not work with error in line 2. (Red - ';' expected)
[] or <> doesn't take a matter.
(FR 3.06)
Daniel
PS only to become sure:
In scripts variables has to be inside <>? Is that right?
Functions not?
thats my procedure:
procedure Band2OnBeforePrint(Sender: TfrxComponent);
begin
<span style='color:red'> <HL>:=NOT <HL>;</span>
end;
HL is a declared variable but i get
';' expected.
[HL]:=NOT [HL]
HL:=NOT HL
won't work too.
If <HL> then
<span style='color:red'>HL:=False</span>
else
HL:=True;
also does not work with error in line 2. (Red - ';' expected)
[] or <> doesn't take a matter.
(FR 3.06)
Daniel
PS only to become sure:
In scripts variables has to be inside <>? Is that right?
Functions not?
Comments
if not in the dictionary they must be declared at the top of the code page
to be global to all the reports events and objects
before the initial blank begin end.
var
myvarname: string;
or at the beginning of a specific procedure to be available to that procedure only.
they then can be used with out any <> in code and if you want to insert in a memo
use [];