Habe das hier versucht:
Code: Alles auswählen
procedure TForm1.Button1Click(Sender: TObject);
begin
if Form1.Width = 648 then
begin
TForm1.Width := 840;
Button1.Left := 822;
end;
if Form1.Width = 840 then
begin
TForm1.Width := 648;
Button1.Left := 630;
end;
end;
unit1.pas(43,18) Error: Only class methods, class properties and class variables can be referred with class references
unit1.pas(43,18) Error: Only class class methods, class properties and class variables can be accessed in class methods
unit1.pas(48,18) Error: Only class methods, class properties and class variables can be referred with class references
unit1.pas(48,18) Error: Only class class methods, class properties and class variables can be accessed in class methods
unit1.pas(55) Fatal: There were 4 errors compiling module, stopping
Ich habe den Fehler das sich die 2te if Schleife immer auslöst gesehen... aber das ist ja nicht die Fehlermeldung
