Making a procedure/function private to a unit
Posted on 2002-03-12
I have two procedures in a unit, one I want to be available outside the unit (public) and the other should only be available to the unit itself (private). The code below demonstates what I am trying to do, but it won't compile. PrivateProc is called by PublicProc and should only be private. If I move the "procedure PrivateProc;" declaration to the interface section, it will compile, however PrivateProc no longer is private anymore. What do I need to do?
Thanks in Advance,
Here is the code...