- Код: Выделить всё
Параметры были изменены, перекомпиляция с очисткой (ключ -B)
unit1.pas(35,4) Error: Variable identifier expected
unit1.pas(45) Fatal: There were 1 errors compiling module, stopping
в 11-й строке я добавил тип который состоит из 5ти цифр.
- Код: Выделить всё
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls;
type
TDayVisitors = array[0..4] of real;// сюда добавил код из примера
{ TForm1 }
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
{ TForm1 }
function massiv(a1,a2,a3,a4,a5:real) : TDayVisitors ;
begin
TDayVisitors [0]:=99;//вот тут появляется ошибка
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
end;
end.