How can I refer or copy the address of an object?
I want to create a UNIT to write/display logging.
Before I use the UNIT, I would initialize it like this:
init_unit (mm: TMemo);
From main application, if I call:
init_unit ( nil );
Then, the logging will be written to a TStrings (internal variable of the unit).
If I call:
init_unit ( mymemo ); // mymemo is TMemo in the main application
Then, the logging will be written to the TStrings and "mymemo" as well.
But I call the log writting with only 1 argument :
WriteLog ( s: string );
Is this possible?
If yes, how ? :)