Autor Beitrag
BigBasti
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 45

Win XP
D7
BeitragVerfasst: Di 23.05.06 19:58 
Hallo!

Ich habe in einem Programm, an dem ich nun bereits eine weile arbeite versucht ganz normal eine button click prozedur zu erstellen, als ich jedoch, wie es ja üblich ist, auf den button doppelklickte, um die prozedur zu erzeugen kam nur:

"Der Quelltext konnte nicht gefunden werden, um die Methode btnOpenClick hinzuzufügen. "END." oder INITALIZATION wurde im Quelltext der Unit nicht gefunden."

Was hab ich denn da versehentlich verändert? kann mir jemand sagen, was ich dagegen machen kann?

Gruß und danke für eventuelle Antworten!

_________________
Das Leben ist wie ein Puzzlespiel: Immer fehlt zum Schluss der wichtigste Teil.
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Di 23.05.06 20:03 
hallo,

du hast vermutlich ausversheen
ausblenden Delphi-Quelltext
1:
2:
3:
 implementation

...
gelöscht ;)

löscht man diesen teil, so kommt, die von dir beschriebene, fehlermeldung :P

mfg


Zuletzt bearbeitet von Marc. am Di 23.05.06 20:06, insgesamt 2-mal bearbeitet
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Di 23.05.06 20:03 
Poste mal ein bischen Code, sonst stochern wir im Nebel.

_________________
Markus Kinzler.
BigBasti Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 45

Win XP
D7
BeitragVerfasst: Di 23.05.06 20:19 
mh ja, die implementation hat tatsächlich gefehlt, nun kommt aber dieser fehler:

"Fehler im Modul der Unit1: Deklaration der Klasse TForm1 fehlt oder ist fehlerhaft."

What can I do?

_________________
Das Leben ist wie ein Puzzlespiel: Immer fehlt zum Schluss der wichtigste Teil.
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Di 23.05.06 20:23 
Z.B. den code mal posten.

_________________
Markus Kinzler.
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Di 23.05.06 20:24 
wie wärs mit "File -> New Projekt"? Das wär wohl zu einfach :lol:
ich vermute mal es fehlt nun auch noch:
ausblenden Delphi-Quelltext
1:
2:
3:
type
         TForm1 = class(TForm) // <=
       ...



;)
BigBasti Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 45

Win XP
D7
BeitragVerfasst: Di 23.05.06 20:27 
hat sich erledigt, thx @ all!

_________________
Das Leben ist wie ein Puzzlespiel: Immer fehlt zum Schluss der wichtigste Teil.
BigBasti Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 45

Win XP
D7
BeitragVerfasst: Sa 27.05.06 12:31 
ok das problem ist neuerlich wieder aufgetaucht, ich poste hier mal etwas quelltext vielleicht findet jemand meinen fehler (es ist übrigens der chat aus dem chat-tutorial von narses)

ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, ScktComp, Menus, jpeg, ExtCtrls;

const
  server_port=9000;

type
  tcmdsyntax=record          //ein Kommando bestehend aus Text und Argumenten
    text:shortstring;        //Kommando-Text
    argcount:integer;        //Anzahl der Argumente
  end;

  tcmdtoken = (              //bekannte Kommandos aufzählen
    cmdNOP = 0,
    cmdSAY,                 //Textnachricht ausgeben
    cmdWHIS,                //flüstern
    cmdME,                   //Aktion
    cmdNICK,                 //neue User-Liste
    cmdERROR);               //Fehler

  TForm1 = class(TForm)
    input: TEdit;
    Log: TMemo;
    Clients: TListBox;
    Label1: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    ServerSocket1: TServerSocket;
    btnsend: TButton;
    Label5: TLabel;
    Image1: TImage;
    procedure deleteclient(socket: tcustomwinsocket);
    procedure clientsend(const text:string);
    procedure broadcast(const name, text: String);
    procedure broadcastMe(const Name,Text:string);
    procedure Senduserlist;
    procedure parsebuffer(const clientindex:integer);
    function getcmdtoken(const strtoken:string):tcmdtoken;
    procedure execute(const command:tcmdtoken; const clientindex:integer;
      data: tstringlist);
    procedure FormCreate(Sender: TObject);
    procedure FormDestroy(Sender: TObject);
    procedure ServerSocket1ClientConnect(Sender: TObject;
      Socket: TCustomWinSocket);
    procedure ServerSocket1ClientDisconnect(Sender: TObject;
      Socket: TCustomWinSocket);
    procedure ServerSocket1ClientError(Sender: TObject;
      Socket: TCustomWinSocket; ErrorEvent: TErrorEvent;
      var ErrorCode: Integer);
    procedure btnsendClick(Sender: TObject);
    procedure inputKeyPress(Sender: TObject; var Key: Char);
    procedure ServerSocket1ClientRead(Sender: TObject;
      Socket: TCustomWinSocket);
    procedure Button1Click(Sender: TObject);

  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
    receivebuffer:tstringlist    //Empfangsbuffer, für jeden Client einen
  end;

const
  syntax: array[tcmdtoken] of tcmdsyntax = (
    (Text: '';    argcount: 1),      //NOP
    (Text: 'SAY'; argcount: 2),      //SAY
    (Text: 'WHIS';argcount: 3),      //WHISPER
    (Text: 'ME'; argcount: 2),       //AKTION
    (Text: 'NICK';argcount: 2),      //USER
    (Text: '';    argcount: 1)       //ERROR
    );

var
  Form1: TForm1;

implementation

{$R *.dfm}


für hilfe und ratschläge wäre ich sehr dankbar, der angezeigte fehler wurde bereits weiter oben in diesem thread genannt!

Sebastian

_________________
Das Leben ist wie ein Puzzlespiel: Immer fehlt zum Schluss der wichtigste Teil.
Born-to-Frag
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1094

Win XP SP2, Win 2000 SP4
Delphi 7, 2k5
BeitragVerfasst: Sa 27.05.06 12:39 
fehlt doch das end. ?!

schreib es doch hin ganz unten

_________________
Theorie ist wenn man alles weiß, aber nichts funktioniert. Praxis ist wenn alles funktioniert, aber niemand weiß warum.
Microsoft vereint Theorie und Praxis: Nichts funktioniert und niemand weiß warum.
BigBasti Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 45

Win XP
D7
BeitragVerfasst: Sa 27.05.06 13:05 
Das end. steht ganz am Ende, ich hab bloß den Anfang gepostet. kein sorge, solch einen fehler hab ich nicht gemacht ;-)

_________________
Das Leben ist wie ein Puzzlespiel: Immer fehlt zum Schluss der wichtigste Teil.
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Sa 27.05.06 13:08 
In Zeile 65 Fehle eine Semikolon.

_________________
Markus Kinzler.
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Sa 27.05.06 13:10 
Hol Dir mal den DelForEx und formatiere dann mal deinen Source. Damit werden viele Fehler (fehlende Ends usw.) sehr schnell sichtbar ...

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
BigBasti Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 45

Win XP
D7
BeitragVerfasst: So 28.05.06 13:49 
den was? woher bekomm ich das denn?

_________________
Das Leben ist wie ein Puzzlespiel: Immer fehlt zum Schluss der wichtigste Teil.
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: So 28.05.06 14:08 
Bitte nicht Dummstellen... Ich hab den Link mit Google in nicht mal einer Minute gefunden ...

www.dow.wau.nl/aew/DelForExp.html

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
BigBasti Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 45

Win XP
D7
BeitragVerfasst: So 28.05.06 20:16 
ja ok war heute etwas verplant und in zeitnot, tut mir leid :(


es lag doch tatsächlich nur daran, dass wie mkinzler oben erwähnte in zeile 65 in semikolon fehlte... verrückte sache sowas.

Vielen dank an alle, die versucht haben mir bei der Problemlösung zu helfen :D

_________________
Das Leben ist wie ein Puzzlespiel: Immer fehlt zum Schluss der wichtigste Teil.