Jack wrote:
> 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.
Jack,
I would normally make a separate file for a class, and use the Uses clause
of the main program to provide access to the public components of the
class. To simply break down a file into smaller ones, you could, I
suppose, use the {I filename} include file directive.
Perhaps you could separate out some of the main form data into a separate
class, or use sub-forms? I do agree that files can be undesirably large -
I have some which are 200KB, 300KB and 400KB, but these tend to be early
programs which have been developed a lot. I sometimes take the "brave"
step of trying to break these down a little by separating the UI parts
from the processing parts, but it's a risky process unless the separation
is very clear.
David
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi