Thanks for all the replies. Before receiving the emails, I started
moving some functions to a separate FormMainCode.pas file and call
these functions from the function stubs in FormMain.pas. Because these
functions all access TFormMain's GUI elements, I added some
with FormMain do
...
end;
in the new file, and everything works fine. But the new file is kind
of large so I may want to split it again in the future but that will
be easier than this time because I can just copy the functions from
one of the code files to another.
>From the form file, I can just right click the function name and
"Find Declaration" to go to the code file. I wish I could map that
menu to a key in Delphi 7...not sure though.
--
Best regards,
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