I have a number of non-GUI style programs (engineering programs for research) where I want to maintain a "console memo," a memo used by all Procedures in all Units to log various information such as intermediate results, progress, etc.
I was thinking of a U_Console unit which would have the form with the Console Memo and a U_MyCommon unit with the procedures that would be used to write to that memo from other units along with other procedures I would normally use with each program I write.
However, there seem to be issues regarding what is in my "top" unit and what unit/procedure my "main program" is located.
I need to in Unit_X, run a Proc from U_MyCommon to write to a Memo1 in U_Console.
There are also issues with USES with hierarchical units. (For one if A Uses B, and B Uses C, I find that C is not available to A and that A Uses C is required to run stuff in C. One would think that Since B Uses C, and A Uses B, then C would be available to A but it appears not. Do I have that right?)
I would get into the details of Types and Vars and Interface and Implementation, to cover what I have done, but since I don't have any success (or an intrinsic understanding at this level), I believe that would simply confuse this post.
I think what I want to do is simple in concept and should be simple to implement, however, I have failed to figure out how to do this.
Any help would be greatly appreciated since I have spent a number of days trying different approaches unsuccessfully. I have also been unable to find anything on the internet about this particular topic to make matters worse.
Thanks in advance,
Tom
I was thinking of a U_Console unit which would have the form with the Console Memo and a U_MyCommon unit with the procedures that would be used to write to that memo from other units along with other procedures I would normally use with each program I write.
However, there seem to be issues regarding what is in my "top" unit and what unit/procedure my "main program" is located.
I need to in Unit_X, run a Proc from U_MyCommon to write to a Memo1 in U_Console.
There are also issues with USES with hierarchical units. (For one if A Uses B, and B Uses C, I find that C is not available to A and that A Uses C is required to run stuff in C. One would think that Since B Uses C, and A Uses B, then C would be available to A but it appears not. Do I have that right?)
I would get into the details of Types and Vars and Interface and Implementation, to cover what I have done, but since I don't have any success (or an intrinsic understanding at this level), I believe that would simply confuse this post.
I think what I want to do is simple in concept and should be simple to implement, however, I have failed to figure out how to do this.
Any help would be greatly appreciated since I have spent a number of days trying different approaches unsuccessfully. I have also been unable to find anything on the internet about this particular topic to make matters worse.
Thanks in advance,
Tom