Autor Beitrag
Mortal-Shadow
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 110



BeitragVerfasst: Fr 13.11.09 20:02 
Hi,

Kann ich von einer anderen Unit aus auf eine Funktion/Variable zugreifen, welche inerhalb der Hauptunit liegt?
Da diese keine richtige Unit ist, gelingt es mir nicht sie bei uses einzubinden.

Des weiteren: Kann ich irgendwie "property" nutzen, ohne ein Dummy-Objekt einzubauen?
Der Kompiler meckert halt "Identifier expectet, but property found".

Danke im Vorraus.


Moderiert von user profile iconNarses: Topic aus Sonstiges (Delphi) verschoben am Mo 23.11.2009 um 13:01
Niko S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 566
Erhaltene Danke: 10

Win 7, Ubuntu
Lazarus, Turbo Delphi, Delphu 7 PE
BeitragVerfasst: Fr 13.11.09 20:29 
Ich glaube nicht, lager doch die Funktionen aus?
Mortal-Shadow Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 110



BeitragVerfasst: Fr 13.11.09 21:03 
Auslagern ginge, auch wenns mir andersrum lieber wäre.

Aber das löst nich das Problem mit der Property.
Im Interface einer Unit ohne type motzt der kompiler :-/
Also auch n Dummy-Objekt?
Niko S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 566
Erhaltene Danke: 10

Win 7, Ubuntu
Lazarus, Turbo Delphi, Delphu 7 PE
BeitragVerfasst: Fr 13.11.09 21:11 
Wäre gut.
Vielleicht eine eigene Klasse dafür verwenden?
Ein wenig Objekt Orientiert programmieren und die Konsole nur fürs Steuern verwenden.
Mortal-Shadow Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 110



BeitragVerfasst: Fr 13.11.09 21:15 
Oki, werd ich dann wohl so machen.