[DUG] defining procedures outside of the private and public sections
Ayers, Stephen
Stephen.Ayers at nz.fujitsu.com
Fri Nov 12 10:27:46 NZDT 2010
Hi
I have just noticed some code that declares some procedures straight
under the class definition line. For example:
Type
TSomeClass = class(Tobject)
Procedure AfterSomething(Sender: TObject)
Private
Somestring : String;
Public
SomeOtherString : String.
Now I know that the Delphi designer puts all the text boxes, button
click events etc in this space on forms, but for a hand written class im
not sure why this has been done or what access it automaticity gets
assigned(private,public..) Can anyone shed some light on this? I am
inclined to just move those procedures into the private section as they
won't be used outside of the class.
Thanks
Steve Ayers
Analyst Programmer
More information about the Delphi
mailing list