Autor Beitrag
McC
Hält's aus hier
Beiträge: 10



BeitragVerfasst: Sa 19.04.03 22:53 
Wie kann ich eine einfache Klassendefinition, also etwas vom Typ

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
type
  TMyClass = class
    ...
  end;

implementation
...
end.


in einem SEPERATEN file Speichern und einfach mit "uses" benutzen, ohne dass da ständig projects und forms gespeichert werden?? Das macht nur ärger, ich will doch nur die Klasse haben und sonst nichts... :cry:
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Sa 19.04.03 23:48 
Na genauso wie Du es beschrieben hast. In eine neue Unit und in der Uses-Liste nur die Units eintragen die benötigt werden!

Gruß
Tino
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: So 20.04.03 00:06 
huhu,

oder anders ausgedrückt:

Datei -> Neu -> Unit ;)

Au'revoir,
Aya~

_________________
Aya
I aim for my endless dreams and I know they will come true!