I have a program and I'm getting a compiler error I don't understand.
In trying to track down the error I started commenting out code, compiling and retrying.
Now I get a error with the following lines of code;
I get a error with 3 procedures.
I have included the zip of the program.
Should be able to load into one dir compile and try.
Thanks;
(Solution) Uncommitted the code procedure and function one at a time.
It compiled and ran OK.
Thanks
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls,
Graphics, Dialogs, StdCtrls, FileUtil,
StrUtils;
type
{ TForm1 }
SArray = Array [1..4] of String;
TForm1 = class(TForm)
btnBuildOperators: TButton;
btnClose : TButton;
btnSaveACTypes : TButton;
btnBldFleetFiles : TButton;
btnDeleteLB8: TButton;
Edit1: TEdit;
Edit2: TEdit;
Edit3: TEdit;
Label1: TLabel;
Label11: TLabel;
Label12: TLabel;
Label14: TLabel;
Label15: TLabel;
Label16: TLabel;
Label17: TLabel;
Label18: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
Label6: TLabel;
Label7: TLabel;
Label8: TLabel;
Label9: TLabel;
ListBox1: TListBox;
ListBox2: TListBox;
ListBox3: TListBox;
ListBox4: TListBox;
ListBox5: TListBox;
LBXX: TListBox;
ListBox6: TListBox;
ListBox7: TListBox;
ListBox8: TListBox;
ListBox9: TListBox;
procedure FormCreate(Sender: TObject);
procedure btnCloseClick(Sender: TObject);
procedure UIMGR(AMODE : String);
private
public
end;
Const
C_AircraftTypes = 'C:\X-Plane 11\ClassicJetSimUtils\WorldTraffic\AircraftTypes\';
C_XACTypes = 'E:\Files\Resources\XFAAAircraftTypes.txt';
C_Operators = 'D:\A Current Project\Utilities\BuildFleet\Files\ICAOOper.txt';
C_ACTypesWRK = 'E:\Files\Work\ACTypesWRK.txt';
C_FleetFiles = 'E:\Files\FleetFiles\';
var
Form1 : TForm1;
Slow : Boolean = True;
WT3 : String = 'C:\X-Plane 11\ClassicJetSimUtils\WorldTraffic\';
LOC : String = '';
implementation
{$R *.lfm}
procedure TForm1.FormCreate(Sender: TObject);
begin
LOC := Application.Location;
UIMGR('1');
end;
procedure TForm1.UIMGR(AMODE : String);
begin
Case AMODE of
'1' : begin
Edit1.Text := '';
Edit2.Text := '';
Edit3.Text := '';
Label11.Caption := '';
Label12.Caption := '';
end;
'11' : begin
Label11.Caption := '';
Label12.Caption := '';
end;
'12' : begin
Label11.Caption := '';
Label12.Caption := '';
Label14.Caption := '';
Label15.Caption := '';
Label16.Caption := '';
Label18.Caption := '';
end;
'C' : ;
end;
end;
procedure TForm1.btnCloseClick(Sender: TObject);
begin
Close;
end;
end.