How to use FileExists function at PascalScript?

edited 11:37PM in FastScript
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

  • edited 11:37PM
    an realy delphi script
    The Script support mostly delphi's Function,variant,data type,procedure and Object

    Dwonload Address: www.soft.e531.com/soft/Delphi_Script.rar


    it can solve you problem!
  • edited 11:37PM
    I have the same problem with Fastreport 4.8

    i need to use the function QuotedStr in Sysutils unit but i dont know how. any idea?
  • erp2 wrote: »
    an realy delphi script
    The Script support mostly delphi's Function,variant,data type,procedure and Object

    Dwonload Address: www.soft.e531.com/soft/Delphi_Script.rar


    it can solve you problem!



    Thanks for the download address.

Leave a Comment