Autor Beitrag
rob87
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 461

Win Me, Win XP Home, Win XP Prof
Delphi 2007 Enterprise
BeitragVerfasst: Di 29.01.08 08:53 
Ich hab eine private-Prozedur selbst geschrieben:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
  private
    { Private-Deklarationen }
    Checkbox1_Enabled();    <-- Fehlermeldung: , oder : erwartet, aber ( gefunden
    ...


ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
implementation

  uses ......;

{$R *.dfm}

...

procedure TfrmVerbrEintr.Checkbox1_Enabled();
begin
      L1.Enabled := true;
      CB1.Enabled := true;
      L2.Enabled := true;
      E1.Enabled := true;
      L3.Enabled := true;
      E2.Enabled := true;
end;


Wahrscheinlich steh ich auf der Leitung, aber irgendwie find ich den Fehler ned :roll:
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6393
Erhaltene Danke: 147

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Di 29.01.08 09:09 
Lass einfach die Klammern weg. Wenn du keine Argumente an die Prozedur übergeben willst, sind die "verboten".
hazard999
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 162

Win XP SP2
VS 2010 Ultimate, CC.Net, Unity, Pex, Moles, DevExpress eXpress App
BeitragVerfasst: Di 29.01.08 09:11 
Hallo,

versuch mal:

ausblenden Delphi-Quelltext
1:
   procedure Checkbox1_Enabled;					


und ein Delphi-Beginner-Tutorial lesen.

r u

René

_________________
MOV EAX, Result;MOV BYTE PTR [EAX], $B9;MOV ECX, M.Data;MOV DWORD PTR [EAX+$1], ECX;MOV BYTE PTR [EAX+$5], $5A;MOV BYTE PTR [EAX+$6], $51;MOV BYTE PTR [EAX+$7], $52;MOV BYTE PTR [EAX+$8], $B9;MOV ECX, M.Code;MOV DWORD PTR [EAX+$9], ECX
hazard999
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 162

Win XP SP2
VS 2010 Ultimate, CC.Net, Unity, Pex, Moles, DevExpress eXpress App
BeitragVerfasst: Di 29.01.08 09:12 
@jasocul:

Verboten auch wenns unter Hochkomma steht ist eigentlich falsch...

_________________
MOV EAX, Result;MOV BYTE PTR [EAX], $B9;MOV ECX, M.Data;MOV DWORD PTR [EAX+$1], ECX;MOV BYTE PTR [EAX+$5], $5A;MOV BYTE PTR [EAX+$6], $51;MOV BYTE PTR [EAX+$7], $52;MOV BYTE PTR [EAX+$8], $B9;MOV ECX, M.Code;MOV DWORD PTR [EAX+$9], ECX
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6393
Erhaltene Danke: 147

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Di 29.01.08 09:24 
Stimmt. Man darf es machen. Mein Fehler. Das eigentliche Problem war wohl, dass "procedure" gefehlt hat.
rob87 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 461

Win Me, Win XP Home, Win XP Prof
Delphi 2007 Enterprise
BeitragVerfasst: Di 29.01.08 09:50 
Ich hatte die Klammern am Anfang nicht da: Da kam dann die Fehlermeldung:
, oder : erwartet, aber ; gefunden

Deswegen habe ich die Klammern nachträglich hinzugefügt.

Ich hab auch schon in einem anderen Formular eine Prozedur mit leeren Klammern verwendet. Das funktioniert einwandfrei, aber bei dieser Funktion hab ich irgendeinen Syntax-Fehler.. :(
rob87 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 461

Win Me, Win XP Home, Win XP Prof
Delphi 2007 Enterprise
BeitragVerfasst: Di 29.01.08 09:54 
user profile iconhazard999 hat folgendes geschrieben:
Hallo,

versuch mal:

ausblenden Delphi-Quelltext
1:
   procedure Checkbox1_Enabled;					



Hat ich auch schon. Bringt auch nichts. Das Problem ist, dass er mir wenn ich den Formularnamen angebe, und dann einen Punkt mach, er mir diese Prozeduren gar nicht vorschlägt
oldmax
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 380


D3 Prof, D4 Prof
BeitragVerfasst: Di 29.01.08 10:28 
Hi
Es deutet immer noch darauf hin, wie es jasocul schon geschrieben hat, es fehlt das Wort "Procedure".
Einen anderen Fehler kann ich da auch nicht sehen.
Gruß oldmax

_________________
Zier dich nich so, ich krieg dich schon....
rob87 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 461

Win Me, Win XP Home, Win XP Prof
Delphi 2007 Enterprise
BeitragVerfasst: Di 29.01.08 10:31 
user profile iconoldmax hat folgendes geschrieben:
Hi
Es deutet immer noch darauf hin, wie es jasocul schon geschrieben hat, es fehlt das Wort "Procedure".
Einen anderen Fehler kann ich da auch nicht sehen.
Gruß oldmax


Aso ja klar. Ich bin ja ein Held. Jetzt is der Groschen gefallen! :lol: :lol: :lol: *schäm*