Autor Beitrag
Atreyu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 137


Delphi 7 Enterprise
BeitragVerfasst: Do 15.11.07 16:18 
Ich schon wieder...

Manchmal denkt man echt, Delphi macht was es will.
Ich habe in der TForm1 eine procedure definiert:
ausblenden Delphi-Quelltext
1:
    procedure KeyConrols1(var Keyht: Word);					


Habe die Funktion erstellt:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TForm1.KeyConrols1(var Keyht: Word);
  var Posi: Integer;

begin
{...}
end;


Dann rufe ich sie aus einer anderen Funktion auf;
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
  KeyControls1(Key);
end;


Und da erscheint der Fehler. Ich will den Key an die Procedure KeyControl1 übergeben, aber der sagt mir, sie wäre nicht definiert. Dabei ist die das TOTAL.
Argh.

Moderiert von user profile iconNarses: Code- durch Delphi-Tags ersetzt
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Do 15.11.07 16:31 
Hast du dich nur hier im Forum verschrieben, oder steht bei dir im Quelltext der Name der Prozedur auch einmal mit und einmal ohne T?

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
Atreyu Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 137


Delphi 7 Enterprise
BeitragVerfasst: Do 15.11.07 16:36 
Ach du SCHE***E!

Dankedankedanke!
Ey, das wär mir in 100 Jahren nicht aufgefallen, wobei ich wusste, dass es was minimales sein muss =)

*peionlich*