Bekomme allerdings die Fehlermeldung:
Wrong Number of Parameters specified for call to Assign
found declaration assign(Tpersistent)
Code: Alles auswählen
unit druckini;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls,
Buttons, StdCtrls;
type
{ TFdruckini }
TFdruckini = class(TForm)
breite_v: TEdit;
Label1: TLabel;
Label2: TLabel;
kopf_m: TMemo;
fuss_m: TMemo;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
var_t: TMemo;
Panel1: TPanel;
zuruck_b: TSpeedButton;
procedure zuruck(Sender: TObject);
private
{ private declarations }
public
procedure start;
{ public declarations }
end;
var
druckini_v: TFdruckini;
implementation
{$R *.lfm}
{ TFdruckini }
procedure TFdruckini.start;
var
f:text;
datei:String;
breite, il:integer;
kopf,fuss, erl:TStringlist;
z,zz:String;
begin
datei:='allgem/rechnung.ini';
kopf:=TStringlist.Create;
fuss:=TStringlist.Create;
if fileexists(datei) then
begin
assign(f,datei); //<--fehlerzeile
reset(f);
while not eof(f) do
begin
readln(f,z);
...
end;
end;
end;
was ist das Problem ?