How to use FileExists function at PascalScript?
uses SysUtils;
procedure MasterData1OnBeforePrint(Sender: TfrxComponent);
begin
 if FileExists(<frxDBDataset1."filename2">) then
 begin
  Picture1.LoadFromFile(<frxDBDataset1."filename2">);
 end;
end;
begin
end.
After run script, got "identifier expected" error.
uses "C:\\SysUtils.pas";
procedure MasterData1OnBeforePrint(Sender: TfrxComponent);
begin
 if FileExists(<frxDBDataset1."filename2">) then
 begin
  Picture1.LoadFromFile(<frxDBDataset1."filename2">);
 end;
end;
begin
end.
After run script, got "Undeclared identifier: 'FileExists'".
How to solve the problem?
Comments
If you can just add a Uses to FastScript, this should be better, but while you can't you can add the function...
[]'s,