I can't see how this can be.
unit1.pas(336,1) Error: Illegal expression
I know in most cases the error is somewhere above the line so here is what I did to find it.
1. Copied the entire application to another directory.
2. Saved the code in Unit1 to a text file called PGM.txt.
3. In Unit1 I deleted everything between implementation and the "end." statement.
4. Commented out all the procedures and function declarations.
5. Compiled the Application.
6a Copied a procedure and or function from the PGM.txt to Unit1.
6b Undocumented the procedure or function in the declaration section.
6c Menu>Run>Build
6D Repeat 6a
It compiled just fine until I copied in "procedure TForm1.LoadMSTIDXFiles;"
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, ExtCtrls,
ActnList, Buttons, DBCtrls, FileUtil, StrUtils;
type
TData = Array of String;
TDIDX = Array of String;
{ TForm1 }
TForm1 = class(TForm)
procedure LoadMSTIDXFiles;"
private
public
end;
var
Form1 : TForm1;
DATA : TData;
MSTIDX : TDIDX;
implementation
{$R *.lfm}
Uses Unit2;
{ TForm1 }
procedure TForm1.LoadMSTIDXFiles;
begin
if FileExists('MSTIDX.txt') then begin
LoadMSTIDXArrayFromFile;
end else begin
LoadMstIdxArray;
SaveMSTIDXFile;
end;
end;
Tried to post the program but to big.