Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi im Interface abschnitt typ aus anderer Unit (https://www.delphipraxis.net/26582-im-interface-abschnitt-typ-aus-anderer-unit.html)

m0sch3r 25. Jul 2004 21:32


im Interface abschnitt typ aus anderer Unit
 
Habe volgendes Problemm

Delphi-Quellcode:
unit VSTFunctions;

interface
procedure SetServerOnVST(Chuwak : Tuser);

implementation

Uses
     Main_Unit, Options_Unit, Protokol_Unit, Users_Clas;
die procedure SetServerOnVST(Shuwak : Tuser); soll im interface Abschnit sein damit sie fur andere
Units sichtbar ist, sie benutzt aber selber einen typ aus andrer Unit(Tuser) und kann ihn nicht "sehen " weil die "uses" klausel erst später kommt.....!!!!!

Wie kann man dieses Problemm umgehen....!!!!

mischerr 25. Jul 2004 22:00

Re: im Interface abschnitt typ aus anderer Unit
 
Wieso bindest du dann die entsprechende Unit nicht im Interface ein? :wink: Also z.B.:
Code:
unit VSTFunctions;

interface

uses users_clas;

procedure SetServerOnVST(Chuwak : Tuser);

implementation

Uses
     Main_Unit, Options_Unit, Protokol_Unit;
Grüsse !


Alle Zeitangaben in WEZ +1. Es ist jetzt 12:24 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz