Autor Beitrag
PreMarT
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 57

Work: Win XP ; Home: Win Vista 64-Bit

BeitragVerfasst: Mo 08.02.10 11:06 
Hi Comm,

hab da mal ne kleine Frage,

Ich habe eine MainUnit und eine HandlerUnit,
Die MainUnit beinhaltet meine Form und die Application und in der HandlerUnit berechne ich diverse Sachen und Überprüfe Excel-Zellen.
Die HandlerUnit steht in der Uses von MainUnit.
Nun zu meinem Problem:
Ich versuche in der HandlerUnit die Funktion Application.ExeName aufzurufen, da ich diese zum Vergleichen einer Zelle benötige, aber der Compiler sagt
[Fehler] uExcelHandler.pas(1477): Undefinierter Bezeichner: 'Application'
Also ich denke das Problem liegt daran das die HandlerUnit die Application der MainUnit nicht kennt, wie kann ich das umgehen?

mfg

PMT


Moderiert von user profile iconNarses: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Mo 08.02.2010 um 11:29
guinnes
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 182
Erhaltene Danke: 14



BeitragVerfasst: Mo 08.02.10 11:09 
user profile iconPreMarT hat folgendes geschrieben Zum zitierten Posting springen:
wie kann ich das umgehen?

Die Unit Forms einbinden
Andreas L.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Mo 08.02.10 11:37 
user profile iconguinnes hat folgendes geschrieben Zum zitierten Posting springen:
user profile iconPreMarT hat folgendes geschrieben Zum zitierten Posting springen:
wie kann ich das umgehen?

Die Unit Forms einbinden


Kann man sich auch sparen wenn man ParamStr(0) verwendet.
PreMarT Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 57

Work: Win XP ; Home: Win Vista 64-Bit

BeitragVerfasst: Mo 08.02.10 12:13 
user profile iconguinnes hat folgendes geschrieben Zum zitierten Posting springen:
user profile iconPreMarT hat folgendes geschrieben Zum zitierten Posting springen:
wie kann ich das umgehen?

Die Unit Forms einbinden


-.- hätte ich auch selber drauf kommen können xD
Ich danke euch

mfg

PMT