> Can a class be split into two files? I tried it but the
> second file doesn't seem to compile.
> The reason I'm asking about this is because
> the main form class files tend to get very large.

Currently a class has to be in a single file, at least from the compiler
view. There are tricks: you can use include file, class helpers or simple
class inheritance.

But I think the right solution for your too large class is simple: you
should break it down to a number of smaller classes specialized to handle
part of the problem you have. In other words, you should delegate part of
the work to be done to other classes, each one being in his own file. The
best way to do that is to create components. Either visial components or
non-visual component.

Not knowing why your class is so huge make difficult to give detailed
advice.

Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to