Autor Beitrag
g1o2k4
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 493



BeitragVerfasst: So 13.09.09 15:49 
hallo.

ich habe andauernd das problem, dass delphi unter "struktur" fehler anzeigt und im quelltext rot markiert. er findet angeblich die komponenten nicht. meistens wenn ich 2 units haben die aufeinander zugreifen.
dann findet er in der einen unit z.b. die form der anderen unit nicht (mehrere fenster).

wenn ich auf kompilieren klicke kommen keine fehler, er kompiliert durch und das programm läuft ohne problene...er zeigt er nur beim entwickeln an. mache ich was falsch?
Einloggen, um Attachments anzusehen!
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: So 13.09.09 15:52 
Das ist leider so, da kann man meistens nicht viel machen. Manchmal liegt es an falschen Zeichen in der Datei, z.B. wenn der Quelltext schlecht formatiert ist.
Zum Beispiel, wenn Tabs oder kaputte Zeilenumbrüche drin sind.
g1o2k4 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 493



BeitragVerfasst: So 13.09.09 16:14 
user profile iconjaenicke hat folgendes geschrieben Zum zitierten Posting springen:
...z.B. wenn der Quelltext schlecht formatiert ist.
Zum Beispiel, wenn Tabs oder kaputte Zeilenumbrüche drin sind.


Das Rad Studio 2009 formatiert meinen Quelltext, das muss Schuld sein :P
Mitmischer 1703
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 754
Erhaltene Danke: 19

Win 7, Debian
Delphi Prism, Delphi 7, RAD Studio 2009 Academic, C#, C++, Java, HTML, PHP
BeitragVerfasst: So 13.09.09 19:01 
user profile icong1o2k4 hat folgendes geschrieben Zum zitierten Posting springen:
user profile iconjaenicke hat folgendes geschrieben Zum zitierten Posting springen:
...z.B. wenn der Quelltext schlecht formatiert ist.
Zum Beispiel, wenn Tabs oder kaputte Zeilenumbrüche drin sind.


Das Rad Studio 2009 formatiert meinen Quelltext, das muss Schuld sein :P


Wie geht das??? Bei Visual C# geht das automatisch, wie kann man das bei Delphi machen? Ich muss es immer noch per Hand machen.

PS: Ich hab das auch immer - ignoriers einfach ;)

_________________
Die Lösung ist nicht siebzehn.
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: So 13.09.09 19:22 
Delphi hat den Codeformatter eigentlich erst ab Delphi 2010, vorher gibts nur die halbautomatischen Templates ohne Zusatztools.
Mitmischer 1703
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 754
Erhaltene Danke: 19

Win 7, Debian
Delphi Prism, Delphi 7, RAD Studio 2009 Academic, C#, C++, Java, HTML, PHP
BeitragVerfasst: So 13.09.09 21:08 
Na toll, jetzt hab mir die tollen neuen Delphis zwei Monate zu früh geholt

_________________
Die Lösung ist nicht siebzehn.
Hidden
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2242
Erhaltene Danke: 55

Win10
VS Code, Delphi 2010 Prof.
BeitragVerfasst: So 13.09.09 22:24 
Zum Trost sei noch erwähnt, dass die kostenlosen Turbo-Versionen bei mir mit dem selben random feature aufwarten :) Die gehen übrigens dort weder durch Neuinstallation weg, noch tauchen sie nur bei bestimmten Codefiles auf, das halte ich demnach für einen Holzweg.

Ich achte einfach nichtmehr darauf, und verlasse mich nurnoch auf den Compiler :)

_________________
Centaur spears can block many spells, but no one tries to block if they see that the spell is a certain shade of green. For this purpose it is useful to know some green stunning hexes. (HPMoR)
g1o2k4 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 493



BeitragVerfasst: Mo 14.09.09 00:23 
für alle die code formatierung für delphi unter delphi 2010 wollen ladet euch das hier:

www.dummzeuch.de/del...experts/english.html

das ist ne inoffizielle build hab ich aber vor 2010 auch benutzt funktionierte super und formatierte mit shortcut.
in delphi 2010 ist der shortcut strg+D